-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #737 from gwenn/linenoise
Mapping between linenoise API and rustyline API
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Mapping between linenoise API and rustyline API | ||
|
||
| linenoise | rustyline | Remarks | | ||
|--------------------------------|------------------------------|---------------------------| | ||
| linenoiseState | State | | | ||
| *Blocking API* | | ||
| linenoise | Editor::readline | | ||
| linenoiseFree | _ | RAII | | ||
| *Non blocking API* | | | ||
| linenoiseEditStart | _ | | ||
| linenoiseEditFeed | _ | | ||
| linenoiseEditStop | _ | | ||
| linenoiseHide | Renderer::clear_rows | | ||
| linenoiseShow | State::refresh_line | | ||
| *Completion API* | | ||
| linenoiseCompletions | Vec<Candidate> | | ||
| linenoiseCompletionCallback | Completer | | ||
| linenoiseAddCompletion | _ | std Vec::add | | ||
| linenoiseSetCompletionCallback | Editor::set_helper | | ||
| linenoiseHintsCallback | Hinter | | ||
| linenoiseSetHintsCallback | Editor::set_helper | | ||
| linenoiseFreeHintsCallback | _ | RAII | | ||
| linenoiseSetFreeHintsCallback | _ | RAII | | ||
| *History API* | | ||
| linenoiseHistoryAdd | Editor::add_history_entry | | ||
| linenoiseHistorySetMaxLen | Editor::set_max_history_size | | ||
| linenoiseHistorySave | Editor::save_history | | ||
| linenoiseHistoryLoad | Editor::load_history | | ||
| *Other utilities* | | ||
| linenoiseClearScreen | Editor::clear_screen | | ||
| linenoiseSetMultiLine | _ | Always activated | | ||
| linenoisePrintKeyCodes | _ | debug logs | | ||
| linenoiseMaskModeEnable | _ | see read_password example | | ||
| linenoiseMaskModeDisable | _ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters