mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +00:00
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. :^)
This commit is contained in:
parent
897ad1b927
commit
0d191aae13
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
dbgprintf("Terminal::on_char: %b (%c), fg=%u, bg=%u\n", ch, ch, m_current_attribute.foreground_color, m_current_attribute.background_color);
|
||||||
#endif
|
#endif
|
||||||
switch (m_escape_state) {
|
switch (m_escape_state) {
|
||||||
case ExpectBracket:
|
case GotEscape:
|
||||||
if (ch == '[') {
|
if (ch == '[') {
|
||||||
m_escape_state = ExpectParameter;
|
m_escape_state = ExpectParameter;
|
||||||
} else if (ch == '(') {
|
} else if (ch == '(') {
|
||||||
|
@ -855,7 +855,7 @@ void Terminal::on_char(u8 ch)
|
||||||
case '\0':
|
case '\0':
|
||||||
return;
|
return;
|
||||||
case '\033':
|
case '\033':
|
||||||
m_escape_state = ExpectBracket;
|
m_escape_state = GotEscape;
|
||||||
m_swallow_current = false;
|
m_swallow_current = false;
|
||||||
return;
|
return;
|
||||||
case 8: // Backspace
|
case 8: // Backspace
|
||||||
|
|
|
@ -200,7 +200,7 @@ private:
|
||||||
|
|
||||||
enum EscapeState {
|
enum EscapeState {
|
||||||
Normal,
|
Normal,
|
||||||
ExpectBracket,
|
GotEscape,
|
||||||
ExpectParameter,
|
ExpectParameter,
|
||||||
ExpectIntermediate,
|
ExpectIntermediate,
|
||||||
ExpectFinal,
|
ExpectFinal,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue