diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-26 03:26:38 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-26 03:26:38 +0100 |
commit | d8494934a7b7cb8063282b03a6b996c9b7cec42a (patch) | |
tree | 4a541ef2004496f918a310ab75690d147dcfe270 /console-tools/resize.c | |
parent | ea023eacad23f6a30cffe4f255a050b91748fc2f (diff) | |
download | busybox-w32-d8494934a7b7cb8063282b03a6b996c9b7cec42a.tar.gz busybox-w32-d8494934a7b7cb8063282b03a6b996c9b7cec42a.tar.bz2 busybox-w32-d8494934a7b7cb8063282b03a6b996c9b7cec42a.zip |
getty: explain every bit in termios; remove redundant stuff in termios_final
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'console-tools/resize.c')
-rw-r--r-- | console-tools/resize.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/console-tools/resize.c b/console-tools/resize.c index fdfe2a6a0..ee0728b71 100644 --- a/console-tools/resize.c +++ b/console-tools/resize.c | |||
@@ -53,6 +53,7 @@ int resize_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
53 | */ | 53 | */ |
54 | fprintf(stderr, ESC"7" ESC"[r" ESC"[999;999H" ESC"[6n"); | 54 | fprintf(stderr, ESC"7" ESC"[r" ESC"[999;999H" ESC"[6n"); |
55 | alarm(3); /* Just in case terminal won't answer */ | 55 | alarm(3); /* Just in case terminal won't answer */ |
56 | //BUG: death by signal won't restore termios | ||
56 | scanf(ESC"[%hu;%huR", &w.ws_row, &w.ws_col); | 57 | scanf(ESC"[%hu;%huR", &w.ws_row, &w.ws_col); |
57 | fprintf(stderr, ESC"8"); | 58 | fprintf(stderr, ESC"8"); |
58 | 59 | ||