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]

Re: Calling a Windows program changes terminal character attributes


On Sun, 16 Feb 2020 11:51:27 -0500
Lee wrote:
> On 2/16/20, Takashi Yano wrote:
> > On Sun, 16 Feb 2020 01:31:14 -0800
> > Mark Geisert wrote:
> >> Thanks Takashi for your reply.  I just wanted to add that setting
> >> CYGWIN=disable_pcon in the environment does not fix this issue.
> >> Please ignore this if that's what's expected.
> >
> > CYGWIN=disable_pcon is needed to be set before launching mintty.
> > That is, the setting should be in user environment in system
> > property in control panel rather than in .bashrc.
> 
> Does setting CYGWIN=disable_pcon do the same thing as adding this to
> the registry?
> -------------
> Windows Registry Editor Version 5.00
> 
> [HKEY_CURRENT_USER\Console]
> "VirtualTerminalLevel"=dword:00000001
> -------------

No. They are very differnt. VirtualTerminalLevel=1 enables ANSI
escape sequence handling in command prompt even without flag
ENABLE_VIRTUAL_TERMINAL_PROCESSING.
CYGWIN=disable_pcon disables pseudo console support in PTY.
PTY is used in mintty, xterm, sshd, etc, but not in command prompt.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
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]