repo/wayland/foot/asv.patch
2024-01-01 23:15:55 +00:00

39 lines
841 B
Diff

diff --git a/vt.c b/vt.c
index 0f7bfe63..715614a9 100644
--- a/vt.c
+++ b/vt.c
@@ -1,4 +1,5 @@
#include "vt.h"
+#include "terminal.h"
#include <stdlib.h>
#include <string.h>
@@ -250,6 +251,26 @@ action_execute(struct terminal *term, uint8_t c)
term_update_ascii_printer(term);
break;
+ case '\x1c':
+ /* FS - \x1c - file separator */
+ term_print(term, U'␜', 1);
+ break;
+
+ case '\x1d':
+ /* GS - \x1d - group separator */
+ term_print(term, U'␝', 1);
+ break;
+
+ case '\x1e':
+ /* RS - \x1e - record separator */
+ term_print(term, U'␞', 1);
+ break;
+
+ case '\x1f':
+ /* US - \x1f - unit separator */
+ term_print(term, U'␟', 1);
+ break;
+
/*
* 8-bit C1 control characters
*