Bug 1387142 - Bad contrast in TERM=xterm-256color terminal in vimdiff, with dark background
Summary: Bad contrast in TERM=xterm-256color terminal in vimdiff, with dark background
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Leigh Griffin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-20 08:57 UTC by Pavel Raiskup
Modified: 2020-01-30 23:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screen with "xterm256-color" (56.81 KB, image/png)
2016-10-20 08:57 UTC, Pavel Raiskup
no flags Details
Screen with TERM=xterm (56.94 KB, image/png)
2016-10-20 08:58 UTC, Pavel Raiskup
no flags Details

Description Pavel Raiskup 2016-10-20 08:57:45 UTC
Created attachment 1212386 [details]
Screen with "xterm256-color"

On the other hand, TERM=xterm has much more readable diffs.

See the attachments.

Comment 1 Pavel Raiskup 2016-10-20 08:58:55 UTC
Created attachment 1212387 [details]
Screen with TERM=xterm

Comment 2 Pavel Raiskup 2016-10-20 09:04:26 UTC
I'm not sure.  There are probably two issues:

1. the red "highlight" color is too shiny with xterm256-color
2. the contrast depends on the actual font color, which depends on file type
and thus syntax colorization plugin .. probably highlighted text should not
use different colors in fonts

Please, either fix 1, or 2, or both -> but the actual colors are unreadable;
and both gnome-terminal and konsole have TERM=xterm256-color by default.

Comment 3 Pavel Raiskup 2016-10-20 09:07:17 UTC
Reproducer for example:
$ vim -d /etc/mock/fedora-rawhide-{x86_64,i386}.cfg


Note You need to log in before you can comment on or make changes to this bug.