mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
vt: re-align switches
This commit is contained in:
parent
b2f091d243
commit
a5f238b388
1 changed files with 68 additions and 67 deletions
5
vt.c
5
vt.c
|
|
@ -1068,7 +1068,7 @@ static enum state
|
||||||
state_ground_switch(struct terminal *term, uint8_t data)
|
state_ground_switch(struct terminal *term, uint8_t data)
|
||||||
{
|
{
|
||||||
switch (data) {
|
switch (data) {
|
||||||
/* (no exit) current enter new state */
|
/* exit current enter new state */
|
||||||
case 0x00 ... 0x17:
|
case 0x00 ... 0x17:
|
||||||
case 0x19:
|
case 0x19:
|
||||||
case 0x1c ... 0x1f: action(term, ACTION_EXECUTE, data); return STATE_GROUND;
|
case 0x1c ... 0x1f: action(term, ACTION_EXECUTE, data); return STATE_GROUND;
|
||||||
|
|
@ -1102,7 +1102,7 @@ static enum state
|
||||||
state_escape_switch(struct terminal *term, uint8_t data)
|
state_escape_switch(struct terminal *term, uint8_t data)
|
||||||
{
|
{
|
||||||
switch (data) {
|
switch (data) {
|
||||||
/* (no exit) current enter new state */
|
/* exit current enter new state */
|
||||||
case 0x00 ... 0x17:
|
case 0x00 ... 0x17:
|
||||||
case 0x19:
|
case 0x19:
|
||||||
case 0x1c ... 0x1f: action(term, ACTION_EXECUTE, data); return STATE_ESCAPE;
|
case 0x1c ... 0x1f: action(term, ACTION_EXECUTE, data); return STATE_ESCAPE;
|
||||||
|
|
@ -1145,6 +1145,7 @@ state_escape_intermediate_switch(struct terminal *term, uint8_t data)
|
||||||
{
|
{
|
||||||
assert(false);
|
assert(false);
|
||||||
switch (data) {
|
switch (data) {
|
||||||
|
/* exit current enter new state */
|
||||||
case 0x00 ... 0x17:
|
case 0x00 ... 0x17:
|
||||||
case 0x19:
|
case 0x19:
|
||||||
case 0x1c ... 0x1f: action(term, ACTION_EXECUTE, data); return STATE_ESCAPE_INTERMEDIATE;
|
case 0x1c ... 0x1f: action(term, ACTION_EXECUTE, data); return STATE_ESCAPE_INTERMEDIATE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue