diff options
author | Andreas Kling <kling@serenityos.org> | 2020-01-25 20:02:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-01-25 20:02:31 +0100 |
commit | 0d191aae13fee7b6a65f1debf95521edf9e8d0b2 (patch) | |
tree | 21e75606f70c0dcd98fa2563707a99fcc9b4c23d /Libraries/LibVT | |
parent | 897ad1b9273aa4197a85517d087202c9727b505e (diff) | |
download | serenity-0d191aae13fee7b6a65f1debf95521edf9e8d0b2.zip |
LibVT: Rename EscapeState::ExpectBracket => GotEscape
Seems like there are many escape sequences that don't start with
brackets, so let's call the post-escape state "GotEscape" instead. :^)
Diffstat (limited to 'Libraries/LibVT')
-rw-r--r-- | Libraries/LibVT/Terminal.cpp | 4 | ||||
-rw-r--r-- | Libraries/LibVT/Terminal.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp index 930a6599b9..44f53e08a9 100644 --- a/Libraries/LibVT/Terminal.cpp +++ b/Libraries/LibVT/Terminal.cpp @@ -779,7 +779,7 @@ void Terminal::on_char(u8 ch) dbgprintf("Terminal::on_char: %b (%c), fg=%u, bg=%u\n", ch, ch, m_current_attribute.foreground_color, m_current_attribute.background_color); #endif switch (m_escape_state) { - case ExpectBracket: + case GotEscape: if (ch == '[') { m_escape_state = ExpectParameter; } else if (ch == '(') { @@ -855,7 +855,7 @@ void Terminal::on_char(u8 ch) case '\0': return; case '\033': - m_escape_state = ExpectBracket; + m_escape_state = GotEscape; m_swallow_current = false; return; case 8: // Backspace diff --git a/Libraries/LibVT/Terminal.h b/Libraries/LibVT/Terminal.h index b64d9b17e0..37a44e78f4 100644 --- a/Libraries/LibVT/Terminal.h +++ b/Libraries/LibVT/Terminal.h @@ -200,7 +200,7 @@ private: enum EscapeState { Normal, - ExpectBracket, + GotEscape, ExpectParameter, ExpectIntermediate, ExpectFinal, |