[PATCH] Cygwin: pty: Disable clear screen for ssh sessions with -t option.

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Oct 21 13:42:00 GMT 2019


On Oct 21 19:55, Takashi Yano wrote:
> On Mon, 21 Oct 2019 11:43:56 +0200
> Corinna Vinschen wrote:
> > So it seems cmd.exe is the only (or one of few) native CLI tools
> > actually trying to manipulate the screen buffer.  And what it does is
> > not so much clearing the screen, but to align buffer line 1 with the top
> > of the screen, even if line 1 has been produced before cmd.exe started.
> 
> Powershell also redraws the screen.
> netsh is even worse. The cursor position will be broken by the follwing
> steps.
> 
> 1) env TERM=dumb script
> 2) netsh
> 3) winhttp show proxy
> 
> > Other than that, my very personal opinion here is, not clearing the
> > screen is more desired than the terminal type and application name (or
> > SID) hacks just to pamper cmd.exe.  Others may disagree, so I'm open to
> > discussion.
> 
> Even with Microsoft-provided OpenSSH server, the screen is cleared
> upon login. Therefore, clearing screen is not so strange, I suppose.

Yes, but I assume this is done in MSFT's OpenSSH server, not in the
kernel or system lib

To me the problem is if it breaks Cygwin scenarios.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20191021/f9bf0963/attachment.sig>


More information about the Cygwin-patches mailing list