aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-11-18 15:18:05 -0600
committerRob Landley <rob@landley.net>2020-11-18 15:18:05 -0600
commitc251e32521229b7bd89a765481e2cd3b1ef02357 (patch)
treefad513b38735e8a486badeae8378f75baa96896f /lib/lib.h
parent0ea04980e327efaf315a58408d926b674b55cb32 (diff)
downloadtoybox-c251e32521229b7bd89a765481e2cd3b1ef02357.tar.gz
Fix microcom to set serial device's terminal correctly.
Can't use the same set_terminal() logic as ptys because it not displaying data, it should just accurately copy it.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 150133b6..431ce5ad 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -337,6 +337,7 @@ int terminal_probesize(unsigned *xx, unsigned *yy);
#define KEY_ALT (1<<18)
int scan_key(char *scratch, int timeout_ms);
int scan_key_getsize(char *scratch, int timeout_ms, unsigned *xx, unsigned *yy);
+void xsetspeed(struct termios *tio, int speed);
int set_terminal(int fd, int raw, int speed, struct termios *old);
void xset_terminal(int fd, int raw, int speed, struct termios *old);
void tty_esc(char *s);