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

2019-10-22 Thread Takashi Yano
On Tue, 22 Oct 2019 15:40:48 +0200 Corinna Vinschen wrote: > Am I doing something wrong? This code crashes mintty on my > installation. At start, a string of "6n6n6n6n..." appears and then > mintty exits. I cannot reproduce that How about this one? -- Takashi Yano cursor-position-2.patc

Re: [PATCH] Cygwin: Provide more COM devices

2019-10-22 Thread Achim Gratz
As requested: >From 7908d09f547e0a7a707139d0faaccc151b88024c Mon Sep 17 00:00:00 2001 From: Achim Gratz Date: Tue, 22 Oct 2019 19:50:50 +0200 Subject: [PATCH] Cygwin: provide more COM devices * winsup/cygwin/devices.in: Provide for 128 COM devices since Windows likes to create lots of these

Re: [PATCH] Cygwin: Provide more COM devices

2019-10-22 Thread Corinna Vinschen
On Oct 22 19:36, Achim Gratz wrote: > Corinna Vinschen writes: > >> So how about we only do this on 64bit as an added bonus for folks who > >> "get it"? > > > > I'm not hot on doing that, and I'm not sure shilka likes ifdef's > > inside the %% block. > > OK, then let's forget about that. > > >> O

Re: [PATCH] Cygwin: Provide more COM devices

2019-10-22 Thread Achim Gratz
Corinna Vinschen writes: >> So how about we only do this on 64bit as an added bonus for folks who >> "get it"? > > I'm not hot on doing that, and I'm not sure shilka likes ifdef's > inside the %% block. OK, then let's forget about that. >> One particular machine I've recently worked on presented

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

2019-10-22 Thread Corinna Vinschen
On Oct 22 18:24, Takashi Yano wrote: > On Tue, 22 Oct 2019 10:02:42 +0200 > Corinna Vinschen wrote: > > On Oct 22 16:23, Takashi Yano wrote: > > > On Tue, 22 Oct 2019 08:55:06 +0200 > > > Corinna Vinschen wrote: > > > > On Oct 22 09:09, Takashi Yano wrote: > > > > > I confirmed the dwSize has right

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

2019-10-22 Thread Michael Haubenwallner
On 10/22/19 10:04 AM, Corinna Vinschen wrote: > On Oct 22 09:20, Michael Haubenwallner wrote: >> On 10/18/19 1:37 PM, Takashi Yano wrote: >>> + const char *term = getenv ("TERM"); >>> + if (term && strcmp (term, "dumb") && !strstr (term, "emacs") && >>> + wcsstr (myself->progname, L"

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

2019-10-22 Thread Takashi Yano
On Tue, 22 Oct 2019 10:02:42 +0200 Corinna Vinschen wrote: > On Oct 22 16:23, Takashi Yano wrote: > > On Tue, 22 Oct 2019 08:55:06 +0200 > > Corinna Vinschen wrote: > > > On Oct 22 09:09, Takashi Yano wrote: > > > > I confirmed the dwSize has right screen size and dwCursorPosition > > > > is (0,0)

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

2019-10-22 Thread Corinna Vinschen
On Oct 22 09:20, Michael Haubenwallner wrote: > Hi Takashi, > > On 10/18/19 1:37 PM, Takashi Yano wrote: > > --- > > winsup/cygwin/fhandler_tty.cc | 21 - > > winsup/cygwin/tty.cc | 1 + > > winsup/cygwin/tty.h | 1 + > > 3 files changed, 22 insertions(+),

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

2019-10-22 Thread Corinna Vinschen
On Oct 22 16:23, Takashi Yano wrote: > On Tue, 22 Oct 2019 08:55:06 +0200 > Corinna Vinschen wrote: > > On Oct 22 09:09, Takashi Yano wrote: > > > I confirmed the dwSize has right screen size and dwCursorPosition > > > is (0,0) just after creating pty even though the cursor position > > > in real s

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

2019-10-22 Thread Takashi Yano
On Tue, 22 Oct 2019 09:09:30 +0900 Takashi Yano wrote: > On Mon, 21 Oct 2019 11:43:56 +0200 > Corinna Vinschen wrote: > > The (admittedly vague) idea is, maybe cmd.exe can be cheated into > > not changing the console buffer by changing it to what it expects > > right after creating the pseudo conso

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

2019-10-22 Thread Takashi Yano
On Tue, 22 Oct 2019 08:55:06 +0200 Corinna Vinschen wrote: > On Oct 22 09:09, Takashi Yano wrote: > > I confirmed the dwSize has right screen size and dwCursorPosition > > is (0,0) just after creating pty even though the cursor position > > in real screen is not at top left. > > > > Clearing scree

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

2019-10-22 Thread Michael Haubenwallner
Hi Takashi, On 10/18/19 1:37 PM, Takashi Yano wrote: > --- > winsup/cygwin/fhandler_tty.cc | 21 - > winsup/cygwin/tty.cc | 1 + > winsup/cygwin/tty.h | 1 + > 3 files changed, 22 insertions(+), 1 deletion(-) > > diff --git a/winsup/cygwin/fhandler_tty.cc

Re: [PATCH] Cygwin: Provide more COM devices

2019-10-22 Thread Corinna Vinschen
On Oct 21 20:10, Achim Gratz wrote: > Corinna Vinschen writes: > > That's not the right way to patch this. devices.cc gets generated from > > devices.in by the gendevices script which in turn calls shilka from the > > cocom package. > > Now that you mention it I remember… :-( > > > Apart from t