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)
|
|
|
|
{
|
|
|
|
t->c_iflag &= ~(IMAXBEL | IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR |
|
|
|
|
IGNCR | ICRNL | IXON);
|
|
|
|
t->c_oflag &= ~OPOST;
|
|
|
|
t->c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
|
|
|
|
t->c_cflag &= ~(CSIZE | PARENB);
|
|
|
|
t->c_cflag |= CS8;
|
|
|
|
t->c_cc[VMIN] = 1;
|
|
|
|
t->c_cc[VTIME] = 0;
|
|
|
|
}
|