Add configurable support for using termcap library for terminal size.

This commit is contained in:
Joachim Nilsson
2010-07-18 18:57:07 +02:00
parent 8b85bab216
commit 6d2f4c99a3
12 changed files with 387 additions and 48 deletions

View File

@@ -45,6 +45,13 @@
#ifdef SYS_OS9
#include "os9.h"
#endif
/* The following two are for TIOCGWINSZ */
#ifdef HAVE_TERMIOS_H
# include <termios.h>
#endif
#ifdef GWINSZ_IN_SYS_IOCTL
# include <sys/ioctl.h>
#endif
#ifndef SIZE_T
#define SIZE_T unsigned int