Luna/libc/include/bits/termios.h
apio 546d900454
All checks were successful
continuous-integration/drone/push Build is passing
libc+apps: Start implementing POSIX-compliant termios.h wrappers around tty ioctls
2023-07-12 19:23:06 +02:00

25 lines
374 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
#define TIOCGPGRP 3
#endif