delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/02/16/02:46:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:to:message-id:date:mime-version
:content-type; q=dns; s=default; b=GkA6i8Mo5AY/xXh7I2TDoP5txqnoe
ZljZlA85NQ4WZFJLersdbUoOc9vmkznoI2KbpVpZz8lTfsS/zKStUL43FMV9S+Dh
wWovicjw1yxAxpCydr7yPhwZ9S0CN5oVoHVNVQnF1Cmz1afDjtDfRjXp3Y/eGHtc
7yimzdKTdawnfQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:subject:to:message-id:date:mime-version
:content-type; s=default; bh=vIkeWzVG7exZxgvuAam9eWUn2xc=; b=KUk
8YnZgg50XgCJQssmg592+51G2zk8d5uMf8TTYbDpqMa5JTq2u0FbitYVtXApulAL
wznrTI3ooThTGBQNzeFQdqHCGlPms4cz0kEO7B4HlqMJEvIQfGpYOpuT6w0GtCL0
c9gg91MYQcDcAxVmuI/nrfKKSZwgs5e0+D0nSeQg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-7.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy=H*RU:!192.168.1.100!, HX-Spam-Relays-External:!192.168.1.100!, H*r:ip*192.168.1.100, bold
X-HELO: m0.truegem.net
From: Mark Geisert <mark AT maxrnd DOT com>
Subject: Calling a Windows program changes terminal character attributes
To: Cygwin Mailing List <cygwin AT cygwin DOT com>
Message-ID: <f16e4909-6af5-093d-90e0-c40455e42f9e@maxrnd.com>
Date: Sat, 15 Feb 2020 23:44:53 -0800
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4
MIME-Version: 1.0

--------------88F4B669380C8EC573409C8F
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------88F4B669380C8EC573409C8F
Content-Type: text/plain; charset=UTF-8;
 name="DIR_COLORS.local"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="DIR_COLORS.local"

LmMgMDA7MzYKLmMuc2FmZSAwMTszNgouaCAwMDszNgouaC5zYWZlIDAxOzM2
Ci5jYyAwMDszNgouY2Muc2FmZSAwMTszNgouY3BwIDAwOzM2Ci5jcHAuc2Fm
ZSAwMTszNgouaHBwIDAwOzM2Ci5ocHAuc2FmZSAwMTszNgoKLnMgMDA7MzYK
LmJsIDAwOzM2Ci5tNGEgMDA7MzYKLmIgMDA7MzYKLm0gMDA7MzYKLm00IDAw
OzM2Ci5nbyAwMDszNgouZ28uc2FmZSAwMTszNgouY2FsIDAwOzM2Ci5jYWwu
c2FmZSAwMTszNgouY2FsYyAwMDszNgoucGwgMDA7MzYKLnB5IDAwOzM2Ci5h
d2sgMDA7MzYKCipha2VmaWxlIDAwOzMxCipha2VmaWxlLnNhZmUgMDE7MzEK
KmFrZWZpbGUuaW4gMDA7MzEKKmFrZWZpbGUuaW4uc2FmZSAwMTszMQoqYWtl
ZmlsZS5hbSAwMDszMQoqYWtlZmlsZS5hbS5zYWZlIDAxOzMxCi5tYWsgMDA7
MzEKLm1hay5zYWZlIDAxOzMxCi5tayAwMDszMQoubWsuc2FmZSAwMTszMQou
YWMgMDA7MzEKCi5odG0gMDA7MzMKLmh0bWwgMDA7MzMKLmNzcyAwMDszMwou
eG1sIDAxOzMzCi5wZGYgMDE7MzMKLnRleCAwMTszMwoudHh0IDAxOzMzCi5s
b2cgMDE7MzMKCi5vIDAwOzMyCi5sbyAwMDszMgouYSAwMDszMgoubGEgMDA7
MzIKLmRsbCAwMDszMgouZGxsLnNhZmUgMDE7MzIKLmxpYiAwMDszMgoubGli
LnNhZmUgMDE7MzIKLmRsbC5hIDAwOzMyCi5kYmcgMDA7MzIKCi5iaW4gMDA7
MzQK


--------------88F4B669380C8EC573409C8F
Content-Type: text/plain; charset=us-ascii


--
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
--------------88F4B669380C8EC573409C8F--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019