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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
/* term.c -- Routines for managing terminal I/O settings by Alan Cox.
* From LJ 17 */
/* Thanks to Dave Cook for rescuing it */
#ifdef WIN32
void term_restore(void)
{
}
void term_exit()
{
}
void term_ctrlz()
{
}
void term_cont()
{
}
void term_init(void)
{
}
void term_character(void)
{
}
void term_line(void)
{
}
int term_testchar()
{
}
#else
#include <termios.h>
#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
#include <asm/ioctls.h>
#endif
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
/* This will be used for new terminal settings. */
static struct termios current;
/* This will hold the initial state so that we can restor it later. */
static struct termios initial;
/* Restor the termianl settings to those saved when term_init was called. */
void term_restore(void)
{
}
void term_exit()
{
}
void term_ctrlz()
{
}
void term_cont()
{
}
void term_init(void)
{
}
void term_character(void)
{
}
void term_line(void)
{
}
int term_testchar()
{
return 0;
}
#endif
|