Package: ttyrec
Version: 1.0.8-1
Severity: normal

Inside a ttyrec session, the screen size is set to 0x0.  This breaks some
programs, and in the rest it makes them assume some made-up default (80x25
or 80x24).

[~]$ stty -a|grep rows
speed 38400 baud; rows 53; columns 139; line = 0;
[~]$ ttyrec /tmp/foo.ttyrec
[~]$ stty -a|grep rows
speed 38400 baud; rows 0; columns 0; line = 0;

Looking at the code, I see that several #ifdef paths handle this properly,
yet, the one used to build current Debian version does not.  There is no
autoconfage and #defines are selected by hand -- it seems something is
missing.

The code which matters is:

ioctl(0, TIOCGWINSZ, (char *)&win);
ioctl(slave, TIOCSWINSZ, (char *)&win);


It would also be nice to do this again whenever SIGWINCH is received.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to