mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-13 06:29:11 +00:00
Update kilo example to show correct shortcuts
Change kilo's help message to show emacs-like keyboard shortcuts used in the current example version. Signed-off-by: Michał Kotowski <dev@mkotowski.dev>
This commit is contained in:
parent
a8ed4fdd09
commit
f9b633917a
1 changed files with 1 additions and 1 deletions
|
@ -1439,7 +1439,7 @@ int main(int argc, char **argv) {
|
||||||
editorSelectSyntaxHighlight(argv[1]);
|
editorSelectSyntaxHighlight(argv[1]);
|
||||||
editorOpen(argv[1]);
|
editorOpen(argv[1]);
|
||||||
enableRawMode(STDIN_FILENO);
|
enableRawMode(STDIN_FILENO);
|
||||||
editorSetStatusMessage("HELP: Ctrl-S = save | Ctrl-Q = quit | Ctrl-F = find");
|
editorSetStatusMessage("HELP: C-x C-s = save | C-q = quit | C-x C-c = force quit | C-s = find");
|
||||||
while (1) {
|
while (1) {
|
||||||
editorRefreshScreen();
|
editorRefreshScreen();
|
||||||
editorProcessKeypress(STDIN_FILENO);
|
editorProcessKeypress(STDIN_FILENO);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue