vtgl

terminal emulator implemented in OpenGL
git clone anongit@rnpnr.xyz:vtgl.git
Log | Files | Refs | Feed | LICENSE

Commit: 5f078f373a3d414002d58ea70a9d21c82154c265
Parent: 328435e68e92bf6f78d3f1ae67c97a1a4a65d02a
Author: Randy Palamar
Date:   Thu, 15 Aug 2024 06:24:19 -0600

stop bell (\a) from moving the cursor

Diffstat:
Mdebug.c | 1+
Mterminal.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/debug.c b/debug.c @@ -21,6 +21,7 @@ simulate_line(Term *t, Line *line) case '\n': cursor_move_to(t, t->cursor.row + 1, t->cursor.col); break; case '\t': cursor_move_to(t, t->cursor.row, t->cursor.col + advance); break; case '\b': cursor_move_to(t, t->cursor.row, t->cursor.col - 1); break; + case '\a': break; default: cursor_move_to(t, t->cursor.row, t->cursor.col + 1); break; } } diff --git a/terminal.c b/terminal.c @@ -865,6 +865,7 @@ push_line(Term *t, Line *line, Arena a) case '\r': t->cursor.col = 0; break; case '\n': push_newline(t); break; case '\t': push_tab(t); break; + case '\a': /* TODO: ding ding? */ break; case '\b': cursor_move_to(t, t->cursor.row, t->cursor.col - 1); break;