summaryrefslogtreecommitdiff
path: root/src/display.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-01-31 00:07:54 +0100
committerAlbert Cervin <albert@acervin.com>2023-01-31 00:12:56 +0100
commit689ceeca3d25cb2f738a6c52776c53912abb797f (patch)
treed61a96445beccae2c5b99c7aa9dee77738a14379 /src/display.c
parentf90d5e1f07fdc9dea7c24b11107049b613a5be7a (diff)
downloaddged-689ceeca3d25cb2f738a6c52776c53912abb797f.tar.gz
dged-689ceeca3d25cb2f738a6c52776c53912abb797f.tar.xz
dged-689ceeca3d25cb2f738a6c52776c53912abb797f.zip
Implement mark and copy-paste
Also fix some memory leaks
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.c b/src/display.c
index 2f147d5..39993ef 100644
--- a/src/display.c
+++ b/src/display.c
@@ -127,9 +127,9 @@ void putbyte(uint8_t c) {
void putbyte_ws(uint8_t c, bool show_whitespace) {
if (show_whitespace && c == '\t') {
- fputs("\x1b[90m → \x1b[0m", stdout);
+ fputs("\x1b[90m → \x1b[39m", stdout);
} else if (show_whitespace && c == ' ') {
- fputs("\x1b[90m·\x1b[0m", stdout);
+ fputs("\x1b[90m·\x1b[39m", stdout);
} else {
putbyte(c);
}