aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-05-14 13:43:01 -0500
committerRob Landley <rob@landley.net>2015-05-14 13:43:01 -0500
commit5b2644cafc8a619b617ba0fbb5473667dbd634ba (patch)
treeeeec75be235b699d55875560df8595545d14fd9c /lib/lib.h
parent5ea14bd1c246f7571d466d18385db22f59ac3262 (diff)
downloadtoybox-5b2644cafc8a619b617ba0fbb5473667dbd634ba.tar.gz
Promote reset (actually write a new one using the simple man 4 console_codes
terminal reset escape sequence) and add gettty() function to lib so terminal gets reset even when we redirect stdout/stderr. (This is apparently the expected behavior.)
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 03a05703..54876b6a 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -181,6 +181,7 @@ int qstrcmp(const void *a, const void *b);
int xpoll(struct pollfd *fds, int nfds, int timeout);
// interestingtimes.c
+int xgettty(void);
int terminal_size(unsigned *xx, unsigned *yy);
int set_terminal(int fd, int raw, struct termios *old);
int scan_key(char *scratch, char **seqs, int block);