This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Calling a Windows program changes terminal character attributes


This may be a duplicate of an already-reported problem. I haven't seen one reported quite this way up to now, though.

I'd long ago modified DIR_COLORS to color-code more kinds of files in 'ls' displays. I've noticed for a while (weeks?) that some of the chars visible in a terminal window are made bold just by launching certain Windows commands. I just now stumbled onto a simple test case.

1) Open a Cygwin Terminal window,
2) cd to a directory with lots of different file types,
3) issue an 'ls' command
4) issue the command "cmd -c version"

You should immediately see that some characters in the visible part of the screen buffer have been converted to bold versions. Not all of them, though.

This only affects the currently-visible part of the screen buffer. If you scroll up, older buffer contents are seen to be unchanged.

I am attaching my DIR_COLORS.local file which is appended to the system's DIR_COLORS by these commands in my .bashrc:

eval `dircolors -b /etc/DIR_COLORS`
LS_COLORS0=$LS_COLORS
eval `dircolors -b /home/mark/DIR_COLORS.local`
export LS_COLORS="$LS_COLORS0$LS_COLORS"

I'm using a 64-bit Cygwin1.dll built from current git, on Windows 10.0.18363.592. I've also aliased: ls='ls -AF --color -b -T 0 '.

..mark

Attachment: DIR_COLORS.local
Description: Text document

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]