blob: b10656f6a9c26d36d8954877a5edd393fd53e4a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-ae,v 1.7 2012/09/29 17:59:34 asau Exp $
Tags: from-upstream
Use pseudo-terminal multiplexor on NetBSD.
Correctly set the terminal size on FreeBSD and NetBSD.
--- src/command.c.orig 2005-06-21 20:08:16.000000000 +0000
+++ src/command.c
@@ -542,7 +542,7 @@ get_pty(void)
ptydev = ttydev = _getpty(&fd, O_RDWR | O_NDELAY, 0622, 0);
if (ptydev == NULL)
goto Failed;
-#elif defined (__svr4__) || defined(__CYGWIN32__) || defined(__lnx21__)
+#elif defined (__svr4__) || defined(__CYGWIN32__) || defined(__lnx21__) || defined(__NetBSD__)
{
extern char *ptsname();
@@ -1085,6 +1085,8 @@ run_command(char *argv[])
#endif /* SRIOCSREDIR */
}
+ tt_winsize(0); /* set window size */
+
/* reset signals and spin off the command interpreter */
signal(SIGINT, SIG_DFL);
signal(SIGQUIT, SIG_DFL);
|