about summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'chat.c')
-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;
 
td>Only GET the final redirect locationJune McEnroe 2019-09-12Consume entire bodyJune McEnroe 2019-09-10Add title -v flagJune McEnroe 2019-09-10Use curl error bufferJune McEnroe 2019-09-10Set Accept-Encoding in titleJune McEnroe 2019-09-08Set title User-AgentJune McEnroe 2019-09-07Add -x flag to titleJune McEnroe 2019-09-07Ignore SIGPIPE in relayJune McEnroe 2019-09-07Add A Memory Called EmpireJune McEnroe 2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe