diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-15 17:14:01 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-09-15 17:14:01 +0200 |
commit | aaaaaa5ad6a93101d38800467fe3750b35fed6ea (patch) | |
tree | 8cd7b7561f3e923a382e5f97b4bd0fbe5fd68c39 /include | |
parent | e58b44755dbac7c55bf602f7f76dfb37b47323f5 (diff) | |
download | busybox-w32-aaaaaa5ad6a93101d38800467fe3750b35fed6ea.tar.gz busybox-w32-aaaaaa5ad6a93101d38800467fe3750b35fed6ea.tar.bz2 busybox-w32-aaaaaa5ad6a93101d38800467fe3750b35fed6ea.zip |
less,microcom,lineedit: use common routine to set raw termios
function old new delta
get_termios_and_make_raw - 139 +139
xget1 39 8 -31
read_line_input 3912 3867 -45
less_main 2525 2471 -54
set_termios_to_raw 116 36 -80
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/4 up/down: 139/-210) Total: -71 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 06f887732..aff2825ac 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1582,6 +1582,7 @@ int tcsetattr_stdin_TCSANOW(const struct termios *tp) FAST_FUNC; | |||
1582 | #define TERMIOS_CLEAR_ISIG (1 << 0) | 1582 | #define TERMIOS_CLEAR_ISIG (1 << 0) |
1583 | #define TERMIOS_RAW_CRNL (1 << 1) | 1583 | #define TERMIOS_RAW_CRNL (1 << 1) |
1584 | #define TERMIOS_RAW_INPUT (1 << 2) | 1584 | #define TERMIOS_RAW_INPUT (1 << 2) |
1585 | int get_termios_and_make_raw(int fd, struct termios *newterm, struct termios *oldterm, int flags) FAST_FUNC; | ||
1585 | int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC; | 1586 | int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC; |
1586 | 1587 | ||
1587 | /* NB: "unsigned request" is crucial! "int request" will break some arches! */ | 1588 | /* NB: "unsigned request" is crucial! "int request" will break some arches! */ |