less,microcom,lineedit: use common routine to set raw termios
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Sep 2017 15:14:01 +0000 (17:14 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 15 Sep 2017 15:14:01 +0000 (17:14 +0200)
commitaaaaaa5ad6a93101d38800467fe3750b35fed6ea
tree8cd7b7561f3e923a382e5f97b4bd0fbe5fd68c39
parente58b44755dbac7c55bf602f7f76dfb37b47323f5
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>
include/libbb.h
libbb/lineedit.c
libbb/xfuncs.c
miscutils/less.c
miscutils/microcom.c