Re: screen on 64-bit mangles mintty/buffer

2014-05-15 Thread Andrew Schulman
> In any case, I've tested the patch below, and it solves the immediate > problem with screen. It probably needs to go upstream too... I'd put > my hand up, but I'm unsure where upstream is exactly. I've uploaded a new test release of screen that incorporates this patch. So we'll see if it fixes t

Re: screen on 64-bit mangles mintty/buffer

2014-05-15 Thread Corinna Vinschen
On May 15 22:54, Shaddy Baddah wrote: > Hi Corinna, > > > On 2014-05-15 17:17+1000, Corinna Vinschen wrote: > > > > > >Nice detective work, really. The goldstar is well deservered :) > > > >On May 15 04:00, Shaddy Baddah wrote: > >>I quickly worked out that the code has a bug for "%i". At some p

Re: screen on 64-bit mangles mintty/buffer

2014-05-15 Thread Shaddy Baddah
Hi Corinna, On 2014-05-15 17:17+1000, Corinna Vinschen wrote: Nice detective work, really. The goldstar is well deservered :) On May 15 04:00, Shaddy Baddah wrote: I quickly worked out that the code has a bug for "%i". At some point the code was changed to push and pop the parameters being

Re: screen on 64-bit mangles mintty/buffer

2014-05-15 Thread Shaddy Baddah
Hi, On 2014-05-15 04:15+1000, Andrew Schulman wrote: I can't understand why the ./conftest.exe differ. Trying to emulate by hand, I cannot reproduce it. But it is now very late here, and I can't debug anymore. I'm hoping that I've provided enough of a lead for someone of authority to decid

Re: screen on 64-bit mangles mintty/buffer

2014-05-15 Thread Corinna Vinschen
Nice detective work, really. The goldstar is well deservered :) On May 15 04:00, Shaddy Baddah wrote: > I quickly worked out that the code has a bug for "%i". At some point > the code was changed to push and pop the parameters being passed (0 and > 39 in my eg.). However, the "%i" select/case b

Re: screen on 64-bit mangles mintty/buffer

2014-05-14 Thread Andrew Schulman
> >> I'm hoping that I've provided enough of a lead for someone of authority > >> to decide where things are right, and where things are wrong. > > > >Yes, I think so! > > > >Thanks a lot, Shaddy. That takes us a long way to a solution. I'll look > >at it from there as soon as I can. > > Andrew

Re: screen on 64-bit mangles mintty/buffer

2014-05-14 Thread Christopher Faylor
On Wed, May 14, 2014 at 02:15:38PM -0400, Andrew Schulman wrote: > > >> The 32-bit defines TERMINFO: >> >> config.h: >> >> /* >> * Define TERMINFO if your machine emulates the termcap routines >> * with the terminfo database. >> * Thus the .screenrc file is parsed for >> * the command 'te

Re: screen on 64-bit mangles mintty/buffer

2014-05-14 Thread Andrew Schulman
> The 32-bit defines TERMINFO: > > config.h: > > /* > * Define TERMINFO if your machine emulates the termcap routines > * with the terminfo database. > * Thus the .screenrc file is parsed for > * the command 'terminfo' and not 'termcap'. > */ > #define TERMINFO 1 > > configure.log: >

Re: screen on 64-bit mangles mintty/buffer

2014-05-14 Thread Shaddy Baddah
H, On 2014-05-15 02:46+0100, Andrew Schulman wrote: The problem only occurs with screen on 64-bit Cygwin. The 32-bit appears to work correctly. The problem is that when screen is run in mintty, it seems to exclude the bottom line, reducing the actual size of the buffer. Further, something goes

Re: screen on 64-bit mangles mintty/buffer

2014-05-12 Thread Andrew Schulman
Hi Shaddy. > Hi, > > This is a problem that I noticed some time last year, so I apologise for > sitting on it for so long. I actually started drafting a number of > emails to report but never committed. > > The problem only occurs with screen on 64-bit Cygwin. The 32-bit appears > to work correc

Re: screen on 64-bit mangles mintty/buffer

2014-05-12 Thread Corinna Vinschen
On May 13 00:57, Shaddy Baddah wrote: > Hi, > > This is a problem that I noticed some time last year, so I apologise for > sitting on it for so long. I actually started drafting a number of > emails to report but never committed. > > The problem only occurs with screen on 64-bit Cygwin. The 32-bi

screen on 64-bit mangles mintty/buffer

2014-05-12 Thread Shaddy Baddah
Hi, This is a problem that I noticed some time last year, so I apologise for sitting on it for so long. I actually started drafting a number of emails to report but never committed. The problem only occurs with screen on 64-bit Cygwin. The 32-bit appears to work correctly. The problem is that wh