dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 443f6f8eb3ca7add0a187ba686a716af62fc71f2
parent 41f99343ef43cf2788979961d15afb149a3caf78
Author: Ross Mohn <rpmohn@waxandwane.org>
Date:   Thu,  2 Oct 2014 14:20:20 +0200

AIX support

Diffstat:
forkpty-aix.c | 3+--
vt.c | 3+++
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/forkpty-aix.c b/forkpty-aix.c @@ -50,8 +50,7 @@ pid_t forkpty(int *master, char *name, struct termios *tio, struct winsize *ws) close(fd); } - if (setsid() < 0) - return -1; + setsid(); fd = open(_PATH_TTY, O_RDWR|O_NOCTTY); if (fd >= 0) diff --git a/vt.c b/vt.c @@ -74,6 +74,9 @@ # define MAX_COLOR_PAIRS COLOR_PAIRS #endif +#if defined _AIX && defined CTRL +# undef CTRL +#endif #ifndef CTRL # define CTRL(k) ((k) & 0x1F) #endif