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>
This commit is contained in:
@ -1582,6 +1582,7 @@ int tcsetattr_stdin_TCSANOW(const struct termios *tp) FAST_FUNC;
|
||||
#define TERMIOS_CLEAR_ISIG (1 << 0)
|
||||
#define TERMIOS_RAW_CRNL (1 << 1)
|
||||
#define TERMIOS_RAW_INPUT (1 << 2)
|
||||
int get_termios_and_make_raw(int fd, struct termios *newterm, struct termios *oldterm, int flags) FAST_FUNC;
|
||||
int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC;
|
||||
|
||||
/* NB: "unsigned request" is crucial! "int request" will break some arches! */
|
||||
|
Reference in New Issue
Block a user