summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-03 19:16:46 -0400
committerJune McEnroe <june@causal.agency>2018-08-03 19:16:46 -0400
commit6ccaf872fc5a981b8f7b04ea3990d6e6a85ff4fe (patch)
treeeccd647a49bb72b5637f44421bf0f278e880327e /chat.c
parentSend a WHO in response to NAMES to get usernames (diff)
downloadcatgirl-6ccaf872fc5a981b8f7b04ea3990d6e6a85ff4fe.tar.gz
catgirl-6ccaf872fc5a981b8f7b04ea3990d6e6a85ff4fe.zip
Use more octal char literals
I might be coming around to octal.
Diffstat (limited to '')
-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;
 
/commit/bounce.c?h=3.1&id=b174b4d6fcb16598ed4506e3abbe9a0109d73845&follow=1'>Use dataOpen for save fileJune McEnroe 2020-08-24Use configOpen to load localCAJune McEnroe 2020-08-24Use configPath to load client cert/privJune McEnroe 2020-08-24Use configOpen in getopt_configJune McEnroe 2020-08-24Import xdg.c from catgirlJune McEnroe 2020-08-23Replace “RAND_bytes” by “getentropy”Issam E. Maghni 2020-08-16contrib/palaver: Add no message preview flagsJune McEnroe 2020-08-13contrib/palaver: Don't set channel for PMsJune McEnroe 2020-08-13Fix unintended interception of NICK after registrationJune McEnroe 2020-08-12Add Additional Components section to READMEJune McEnroe 2020-08-12Document -L / palaver optionJune McEnroe 2020-08-11contrib/palaver: Document service configurationJune McEnroe 2020-08-11contrib/palaver: Add install target and rc scriptJune McEnroe 2020-08-11contrib/palaver: Implement command and notificationsJune McEnroe