#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];
{
char c = (char) keycode;
- if (keytable['\n'] != NULL)
+ if (keytable['\n'] == NULL)
keytable_init();
if (keycode >= 0 && keycode < KEY_MAX && keytable[keycode]) {