From 5d343e1c29b8b181b8744405d9b074566c6cbc13 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 6 Aug 2020 11:47:06 -0400 Subject: LibLine: Add comments for which keys trigger VWERASE and VKILL --- Libraries/LibLine/Editor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Libraries') diff --git a/Libraries/LibLine/Editor.cpp b/Libraries/LibLine/Editor.cpp index 3e107b28ff..3e37c8177f 100644 --- a/Libraries/LibLine/Editor.cpp +++ b/Libraries/LibLine/Editor.cpp @@ -797,6 +797,7 @@ void Editor::handle_read_event() } m_times_tab_pressed = 0; // Safe to say if we get here, the user didn't press TAB + // Normally ^W. `stty werase \^n` can change it to ^N (or something else), but Serenity doesn't have `stty` yet. if (code_point == m_termios.c_cc[VWERASE]) { bool has_seen_nonspace = false; while (m_cursor > 0) { @@ -810,6 +811,7 @@ void Editor::handle_read_event() } continue; } + // Normally ^U. `stty kill \^n` can change it to ^N (or something else), but Serenity doesn't have `stty` yet. if (code_point == m_termios.c_cc[VKILL]) { for (size_t i = 0; i < m_cursor; ++i) remove_at_index(0); -- cgit v1.2.3