Jouni Malinen
0bee81352f
edit: Split escape code parsing into a separate function
...
This makes edit_read_char() simpler and easier to extend since it
does not need to know anything about the escape codes anymore.
2010-11-20 15:55:51 +02:00
Jouni Malinen
ef6ee3e5a3
edit: Sort completion list
2010-11-20 12:41:15 +02:00
Jouni Malinen
9364990ace
edit: Really fix the completion of last character
...
The previous commit broke completion in various places. The proper
way of handling the completion of full word is to verify whether
there are more than one possible match at that point.
2010-11-20 12:27:06 +02:00
Jouni Malinen
414780027a
edit: Fix completion at the last character
...
Completion needs to be done even if the full word has been entered.
In addition, fix the space-after-full-word to properly allocate room
for the extra character when completion is used in the middle of the
string.
2010-11-20 11:59:04 +02:00
Jouni Malinen
89eb6b774d
edit: Fix delete word to update current position
2010-11-20 11:48:00 +02:00
Jouni Malinen
e4f13f9256
edit: Fix completion of arguments other than the first one
2010-11-20 11:45:42 +02:00
Jouni Malinen
73669f1b03
edit: Fix Home/End escape codes
2010-11-20 11:20:48 +02:00
Jouni Malinen
7302a35ed4
edit: Add string completion support on tab
2010-11-20 00:42:02 +02:00
Jouni Malinen
e8ecb5fb49
Move wpa_cli readline integration into src/utils/edit_readline.c
...
All three line editing options are now located in src/utils/edit*.c
and provide the same API to allow easy build time selection.
2010-11-14 22:37:43 +02:00
Jouni Malinen
bdc45634f0
wpa_cli: Use edit API as a wrapper for optional readline
2010-11-14 21:19:35 +02:00
Jouni Malinen
616e0e728e
edit: Redraw input line on ^L
2010-11-14 21:03:24 +02:00
Jouni Malinen
82a855bda8
Move command line editing routines into src/utils/edit*.[ch]
...
This allows the same routines to be shared with other programs
since these are not really specific to wpa_cli.
2010-11-14 20:59:29 +02:00