apio
81e1fdf81e
All checks were successful
continuous-integration/drone/push Build is passing
Also, the console sends SIGINT to the foreground process group when ^C is pressed!
24 lines
354 B
C
24 lines
354 B
C
/* bits/termios.h: Terminal control definitions. */
|
|
|
|
#ifndef _BITS_TERMIOS_H
|
|
#define _BITS_TERMIOS_H
|
|
|
|
typedef long tcflag_t;
|
|
|
|
// VERY incomplete termios structure.
|
|
struct termios
|
|
{
|
|
tcflag_t c_lflag;
|
|
};
|
|
|
|
// Values for c_lflag.
|
|
#define ECHO 1
|
|
#define TOSTOP 2
|
|
|
|
// termios ioctl() requests.
|
|
#define TCGETS 0
|
|
#define TCSETS 1
|
|
#define TIOCSPGRP 2
|
|
|
|
#endif
|