aboutsummaryrefslogtreecommitdiff
path: root/libbb/read_key.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* read_key: drop optimization where we read 3 bytes at onceDenys Vlasenko2009-05-291-5/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* line editing: add an option to emit ESC [ 6 n and use resultsDenys Vlasenko2009-05-171-8/+49
| | | | | | | | | This makes line editing able to recognize case when cursor was not at the beginning of the line. It may also be adapted later to find out display size (serial line users would love it). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lineedit: use read_key to recognize ESC sequence.Denys Vlasenko2009-05-151-0/+1
| | | | | | | | | | | | | | | This fixes several vi mode bugs and prepares for further fixes. function old new delta read_line_input 3287 5511 +2224 remember_in_history - 499 +499 lineedit_read_key - 70 +70 read_key 321 332 +11 input_tab 2823 - -2823 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 2/0 up/down: 2804/-2823) Total: -19 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* read_key is actually written by Rob, add him to copyright noticeDenis Vlasenko2008-10-261-2/+3
|
* read_key: add comments how Shift and Meta keys looks like.Denis Vlasenko2008-10-251-0/+5
| | | | | no code changes
* less: reuse former vi's key reading code. Improve SIGWINCH handling.Denis Vlasenko2008-10-251-6/+11
| | | | | | | | | | | | | | | function old new delta less_main 2056 2097 +41 getch_nowait 248 273 +25 read_key 310 321 +11 static.esccmds 61 69 +8 count_lines 72 74 +2 less_gets 166 142 -24 less_getch 172 43 -129 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/5 up/down: 91/-170) Total: -79 bytes text data bss dec hex filename
* libbb: add forgotten file from previous commit :(Denis Vlasenko2008-10-251-0/+146