2019-10-13 19:51:04 -04:00
|
|
|
#include <sys/termios.h>
|
|
|
|
|
2019-08-27 04:13:50 -04:00
|
|
|
#include <math.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
2019-08-13 16:58:14 -04:00
|
|
|
#include <unistd.h>
|
|
|
|
|
2019-08-26 15:12:15 -04:00
|
|
|
#include "scheme.h"
|
2019-08-13 16:58:14 -04:00
|
|
|
|
|
|
|
char *get_exename(char *buf, size_t size)
|
|
|
|
{
|
|
|
|
(void)buf;
|
|
|
|
(void)size;
|
|
|
|
return NULL;
|
|
|
|
}
|
2019-10-13 19:51:04 -04:00
|
|
|
|
|
|
|
void cfmakeraw(struct termios *t)
|
|
|
|
{
|
2019-10-14 06:25:35 -04:00
|
|
|
t->c_iflag &=
|
|
|
|
~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
|
2019-10-13 19:51:04 -04:00
|
|
|
t->c_oflag &= ~OPOST;
|
|
|
|
t->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
|
|
|
|
t->c_cflag &= ~(CSIZE | PARENB);
|
|
|
|
t->c_cflag |= CS8;
|
|
|
|
}
|