Commit Graph

28 Commits (vlan_per_psk)

Author SHA1 Message Date
Jouni Malinen 21611ea9fd edit: Increase buffer size to 4096 bytes
wpa_supplicant and wpa_cli had already moved to allowing up to 4096 byte
buffer size to be used for control interface commands. This was limited
by the line edit buffer in interactive mode. Increase that limit to
match the other buffers to avoid artificially truncating long commands.

Signed-off-by: Jouni Malinen <j@w1.fi>
10 years ago
Jouni Malinen ad0685e901 edit: Fix history processing on running old command
currbuf_valid needs to be cleared when an old command from history is
processed to avoid leaving a bogus entry that makes history_prev() skip
the last entry in history.

Signed-hostap: Jouni Malinen <j@w1.fi>
11 years ago
Jouni Malinen 4c3b921ebf edit: Add support for prompt string with internal line edit
Signed-hostap: Jouni Malinen <j@w1.fi>
12 years ago
Janusz Dziedzic 2d2398a11f edit: Add support for setting prompt string
Signed-hostap: Janusz Dziedzic <janusz.dziedzic@tieto.com>
12 years ago
Jouni Malinen 0f3d578efc Remove the GPL notification from files contributed by Jouni Malinen
Remove the GPL notification text from the files that were
initially contributed by myself.

Signed-hostap: Jouni Malinen <j@w1.fi>
12 years ago
Jouni Malinen 1e1a0a4dc9 edit: Fix history prev/next selection
Commit 19ec1f262e tried to fix some
cases for history prev selection, but it broke others. Fix this
properly by using a separate entry for the current edit line that
is not yet in history buffer.
13 years ago
Jouni Malinen dfaeda0492 Fix couple of compiler warnings about uninitialized variables 14 years ago
Jouni Malinen e3acc8f1c8 edit: Clear edit line on deinit 14 years ago
Jouni Malinen 566aef60ab edit: Limit maximum number of history entries to 100 14 years ago
Jouni Malinen 70de7d56fe edit: Implement history file read/write 14 years ago
Jouni Malinen 19ec1f262e edit: Fix history prev selection 14 years ago
Jouni Malinen 8953e9681a edit: Move history save file specification to caller 14 years ago
Jouni Malinen ec9aac9468 edit: Use struct dl_list for history buffer 14 years ago
Jouni Malinen 31e1206baa edit: Fix delete_word when not in the end of line 14 years ago
Jouni Malinen 464144a43b edit: Add history buffer search
Ctrl-R can now be used to start history search mode.
14 years ago
Jouni Malinen 42034d6f60 edit: Clean up escape code parser 14 years ago
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.
14 years ago
Jouni Malinen ef6ee3e5a3 edit: Sort completion list 14 years ago
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.
14 years ago
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.
14 years ago
Jouni Malinen 89eb6b774d edit: Fix delete word to update current position 14 years ago
Jouni Malinen e4f13f9256 edit: Fix completion of arguments other than the first one 14 years ago
Jouni Malinen 73669f1b03 edit: Fix Home/End escape codes 14 years ago
Jouni Malinen 7302a35ed4 edit: Add string completion support on tab 14 years ago
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.
14 years ago
Jouni Malinen bdc45634f0 wpa_cli: Use edit API as a wrapper for optional readline 14 years ago
Jouni Malinen 616e0e728e edit: Redraw input line on ^L 14 years ago
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.
14 years ago