Group :: Terminais
RPM: ttyrec
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: 05_WINSZ.diff
Download
Download
Description: WINSZ change in ttyrec.c (getslave)
Author: Adam Borowski <kilobyte@angband.pl>
Bug-Debian: http://bugs.debian.org/472463
Reviewed-By: NIIBE Yutaka <gniibe@fsij.org>
Last-Update: 2010-04-27
--- ttyrec-1.0.8.orig/ttyrec.c
+++ ttyrec-1.0.8/ttyrec.c
@@ -464,8 +464,9 @@
fail();
}
#endif
- (void) ioctl(0, TIOCGWINSZ, (char *)&win);
}
+ (void) tcsetattr(slave, TCSAFLUSH, &tt);
+ (void) ioctl(slave, TIOCSWINSZ, (char *)&win);
#else /* !SVR4 */
#ifndef HAVE_openpty
line[strlen("/dev/")] = 't';