aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-01-01 18:54:45 +0100
committerBoris Faure <billiob@gmail.com>2019-01-01 20:13:09 +0100
commita0db4164696cd945c1593f4b84fc467a1a5917a4 (patch)
tree426901eab1d8dcb23f5bf58349f9bf29cc0968bc
parenttermptyesc: move CUF/CUB handlers to their own functions (diff)
downloadterminology-a0db4164696cd945c1593f4b84fc467a1a5917a4.tar.gz
termptyesc: cleanup
-rw-r--r--src/bin/termptyesc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 2ab39b8..1ef9357 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -2516,8 +2516,9 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
ty->cursor_state.cx = arg - 1;
TERMPTY_RESTRICT_FIELD(ty->cursor_state.cx, 0, ty->w);
break;
- case 'H': // cursor pos set (CUP)
- goto HVP;
+ case 'H':
+ _handle_esc_csi_cursor_pos_set(ty, &b, cc);
+ break;
case 'I':
arg = _csi_arg_get(ty, &b);
if (arg == -CSI_ARG_ERROR)
@@ -2762,11 +2763,10 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
ty->cursor_state.cy = arg - 1;
TERMPTY_RESTRICT_FIELD(ty->cursor_state.cy, 0, ty->h);
break;
- case 'e': // cursor down N (VPR)
+ case 'e':
_handle_esc_csi_cud(ty, &b);
break;
- case 'f': // cursor pos set (HVP)
-HVP:
+ case 'f':
_handle_esc_csi_cursor_pos_set(ty, &b, cc);
break;
case 'g': // clear tabulation