mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-29 08:49:40 +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);
|
|
}
|