On Tue, Aug 23, 2016 at 07:11:51AM -0700, T. Joseph Carter wrote:
> On Tue, Aug 23, 2016 at 03:47:42PM +0200, Bill Allombert wrote:
> >>Intrigued by Consolation as a possible GPM replacement, so I figured I'd
> >>remove that and give it a shot.
> >
> >Congratulation you are the first victim!
>
> Fixed. ;)
>
> >>BTW, copying a line works regardless of length, and the same for a word that
> >>begins on or before column 64.
> >
> >The code I use to get the screen size is as follow:
> >
> > if (ioctl(0, TIOCGWINSZ, &s)) perror("TIOCGWINSZ");
> > screen_width = s.ws_col;
> > screen_height = s.ws_row;
>
> That's strange because the value of 64 is never appropriate:
Agreed, the above code is buggy, it should be ioctl(tty0,TIOCGWINSZ).
I have fixed this locally. I will fix it in Debian in early September.
Cheers,
Bill.