mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-25 19:22:08 +03:00
14 lines
278 B
C
14 lines
278 B
C
#include <termios.h>
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
|
|
void vty_set_term_timing(int fd, int vmin, int vtime)
|
|
{
|
|
struct termios trm;
|
|
tcgetattr(fd, &trm);
|
|
trm.c_cc[VMIN] = vmin;
|
|
trm.c_cc[VTIME] = vtime;
|
|
tcsetattr(fd, TCSANOW, &trm);
|
|
}
|