CFLAGS="$CFLAGS -DUSE_NCURSES"
fi
-AC_ARG_ENABLE([pty],
- AS_HELP_STRING([--disable-pty], [disables pty support (default enabled)]))
-if test "${enable_pty}" != "no"; then
- AC_CHECK_LIB([util], [forkpty], [],
- AC_MSG_ERROR([Need util library (forkpty function) to compile pty support.]))
- CFLAGS="$CFLAGS -DUSE_PTY"
-fi
-
dnl Checks for library functions
AC_CHECK_FUNCS([memset select setenv])
AC_FUNC_MALLOC
bin_PROGRAMS = boxshell
boxshell_SOURCES = boxshell.c
-boxshell_LDFLAGS = -L../madtty -lmadtty -lncurses -lutil
+boxshell_LDFLAGS = -L../madtty -lmadtty -lncurses
boxshell_CPPFLAGS = -Wno-error
include $(DEPTH)/am/footer.mk
/* create a window with a frame */
term_win = newwin(h + 2, w + 2, 1, 2);
wattrset(term_win, COLOR_PAIR(7*8+7-0)); /* black over white */
- wborder(term_win, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ');
+ wborder(term_win, '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0');
mvwprintw(term_win, 0, 27, " Term In a Box ");
wrefresh(term_win);
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
-#ifdef USE_PTY
-#include <pty.h>
-#endif
#include <stdio.h>
#include <string.h>
+#include <sys/ioctl.h>
#include "madtty.h"
#include "roteprivate.h"
return 0;
}
-
-#ifdef USE_PTY
-
pid_t rote_vt_forkpty(RoteTerm *rt, const char *path, const char *argv[])
{
struct winsize ws;
rt->childpid = 0;
}
-#endif
-
void rote_vt_update(RoteTerm *rt)
{
char buf[512];