Luna/libc/include/bits/termios.h
apio efd5bae7a5
Some checks failed
continuous-integration/drone/push Build is failing
kernel: Implement querying the terminal window size
2023-07-12 22:09:28 +02:00

34 lines
486 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;
};
struct winsize
{
u16 ws_row;
u16 ws_col;
u16 ws_xpixel;
u16 ws_ypixel;
};
// 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
#define TIOCGWINSZ 4
#endif