pty: handle tty ioctl

This commit is contained in:
Matheus
2024-05-08 15:59:40 -03:00
parent 09e36bdd4e
commit ae47efa87d
4 changed files with 26 additions and 12 deletions
+1
View File
@@ -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
+1
View File
@@ -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;