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:
Michał Kotowski 2025-03-23 21:46:24 +01:00
parent a8ed4fdd09
commit f9b633917a
No known key found for this signature in database
GPG key ID: 41EDE9AD22F4A6F8

View file

@ -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);