From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: 3.1.x: Mangled input/output when calling non-cygwin programs
Date: Sun, 02 Feb 2020 09:59:00 -0000 [thread overview]
Message-ID: <20200202185909.a3b3f8627438177e18171de3@nifty.ne.jp> (raw)
In-Reply-To: <7e3d947e-b178-30a3-589f-b48e6003fbb3@googlemail.com>
On Sat, 1 Feb 2020 19:00:04 +0100
m0viefreak wrote:
> Since Cygwin 3.1's pseudo console support was introduced I've run into
> lots of issues with non-cygwin programs.
Thanks for the report.
> 1) Mangled output: See screenshot [1].
> As you can see, at what it seems random places, the output is broken.
> The above can easily be reproduced using Apache Maven in any project,
> e.g. using a sample project created using [2].
>
> 2) Terminal width: For some reason, non-native programs do not use the
> full width of the terminal (Mintty and TERM=xterm-256color). Can also
> be seen in [1] (blue highlight) and reproduced e.g. using Maven with
> a relatively small window.
I looked into this problem, but Maven is something weird.
I don't think it uses termcap or terminfo, but it behaves
differently depending on TERM.
If you run
env TERM=cygwin mvn <something>
in mintty, problem 1) and 2) does not occur.
> 3) Typed characters while non-cygwin program is running are lost.
> Usually, when typing characters while a native program executes,
> which does *not* read from standard input, after the program exits,
> all these typed characters are put into the prompt.
> When executing a non-native program, such as, again, "mvn clean",
> which does not read from stdin, typed characters are completely lost.
> This is very frustrating, since I am often quicker at tying the
> next command, while the previous command is still doing something.
I know the cause of this problem. Let me consider.
> 4) Importance of TERM: When connecting to my Cygwin installation using
> SSH using Putty, TERM=putty-256color is set. When executing non-
> native program from that session using that TERM, output is broken
> even worse than in 1), and also keybindings are broken. I need to
> force TERM=xterm-256color for those invocations.
> Shouldn't this be handled transparently and enforced automatically by
> the pcon code?
Which keybinding is broken? In my environment, arrow keys and function
keys work as expected in cmd.exe and windows-native vim.
My configuration of putty is:
Terminal
+ Keybord
+ The Function keys and keypad: Xterm R6
The PTY codes do not reffer to TERM environment, so cygwin1.dll itself
should not behave differently depending on TERM.
--
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
next prev parent reply other threads:[~2020-02-02 9:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-01 18:00 m0viefreak
2020-02-02 9:59 ` Takashi Yano [this message]
2020-02-02 12:18 ` m0viefreak
2020-02-02 19:01 ` Takashi Yano
2020-02-03 14:20 ` Takashi Yano
2020-02-09 13:42 ` Takashi Yano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200202185909.a3b3f8627438177e18171de3@nifty.ne.jp \
--to=takashi.yano@nifty.ne.jp \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).