mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
pty: handle tty ioctl
This commit is contained in:
@@ -34,5 +34,6 @@ void tty_init();
|
||||
tty_t *tty_create(char *name, ttydevicewritefn_t writefn, ttyinactivefn_t inactivefn, void *internal);
|
||||
void tty_process(tty_t *tty, char c);
|
||||
void tty_unregister(tty_t *tty);
|
||||
int tty_ioctl(tty_t *tty, unsigned long req, void *arg, int *result);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -22,6 +22,7 @@ typedef unsigned int tcflag_t;
|
||||
#define TCGETS 0x5401
|
||||
#define TCSETS 0x5402
|
||||
#define TIOCGWINSZ 0x5413
|
||||
#define TIOCSWINSZ 0x5414
|
||||
|
||||
typedef struct {
|
||||
unsigned short ws_row;
|
||||
|
||||
Reference in New Issue
Block a user