summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--chat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/chat.c b/chat.c
index 7058802..c368212 100644
--- a/chat.c
+++ b/chat.c
@@ -109,17 +109,17 @@ static void uiAdd(WINDOW *win, const char *str) {
 	short colorPair = -1;
 	attr_t colorAttr = A_NORMAL;
 	for (;;) {
-		size_t cc = strcspn(str, "\x02\x03\x1D\x1F");
+		size_t cc = strcspn(str, "\2\3\35\37");
 		wattr_set(win, attr | colorAttr, 1 + colorPair, NULL);
 		waddnstr(win, str, cc);
 		if (!str[cc]) break;
 
 		str = &str[cc];
 		switch (*str++) {
-			break; case 0x02: attr ^= A_BOLD;
-			break; case 0x1D: attr ^= A_ITALIC;
-			break; case 0x1F: attr ^= A_UNDERLINE;
-			break; case 0x03: {
+			break; case '\2':  attr ^= A_BOLD;
+			break; case '\35': attr ^= A_ITALIC;
+			break; case '\37': attr ^= A_UNDERLINE;
+			break; case '\3': {
 				short fg = 0;
 				short bg = 0;
 
gsubject'>Day 9, part 2June McEnroe 2020-11-22Day 9June McEnroe I was really sick at the start of the week, okay? 2020-11-22Day 8, part 2June McEnroe 2020-11-22Day 8June McEnroe 2020-11-22Day 7, part 2June McEnroe I don't even know what this is. Don't look at it. 2020-11-22Day 7June McEnroe 2020-11-22Day 6, part 2June McEnroe 2020-11-22Day 6June McEnroe 2020-11-22Day 5, part 2June McEnroe 2020-11-22Day 5June McEnroe 2020-11-22Day 4, part 2June McEnroe That ugly sort map though. 2020-11-22Day 4June McEnroe 2020-11-22Day 3, part 2June McEnroe I am super surprised that worked on the first try. 2020-11-22Day 3, clean upJune McEnroe 2020-11-22Day 3June McEnroe This is fucking awful and I'm angry. 2020-11-22Day 2, part 2June McEnroe 2020-11-22Day 2June McEnroe 2020-11-22Day 1, part 2June McEnroe 2020-11-22Day 1June McEnroe 2020-11-22Move to 2016 directoryJune McEnroe