From 6ccaf872fc5a981b8f7b04ea3990d6e6a85ff4fe Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 3 Aug 2018 19:16:46 -0400 Subject: Use more octal char literals I might be coming around to octal. --- chat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chat.c') 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; -- cgit 1.4.0 258b19cbbf60a55f1930ea'>refs log tree commit diff
path: root/www/text.causal.agency/005-testing-c.7 (unfollow)
Commit message (Collapse)Author
2020-06-30Tweak causal.agency for mostly no reasonJune McEnroe
2020-06-30Add Ancillary JusticeJune McEnroe
2020-06-26Add password non-manager to planJune McEnroe
I've had this idea for years...
2020-06-26Tweak TF2 sensitivities once moreJune McEnroe
2020-06-19Add note about litterbox bot useJune McEnroe
2020-06-19Publish "IRC suite"June McEnroe
2020-06-17Add errors to link.shJune McEnroe 02:51:22 -0400'>2019-10-27Improve client/server error messagesJune McEnroe
2019-10-27Add reload cmd to rc scriptJune McEnroe
Using daemon(8) makes this way more awkward than it should be.
2019-10-27Reload certificate on SIGUSR1June McEnroe
2019-10-27Drop clients on zero-length readsJune McEnroe
2019-10-27Explicitly tls_handshake new clientsJune McEnroe
This prevents a client connecting, sending nothing, and getting blocked in tls_read immediately.
2019-10-26Document rationaleJune McEnroe
2019-10-26Handle nick collisionJune McEnroe
2019-10-26Wait for AUTHENTICATE + from serverJune McEnroe
2019-10-26Respond to PING with same parameterJune McEnroe
2019-10-26Add undocumented flag to disable verificationJune McEnroe
2019-10-26Do not require RPL_ISUPPORT for stateReadyJune McEnroe
2019-10-26Implement graceful shutdownJune McEnroe
2019-10-26Require PASS before USERJune McEnroe
Prevent creating a ring consumer without authentication.
2019-10-26Track channel topicsJune McEnroe
2019-10-26Set AWAY when no clients are connectedJune McEnroe
2019-10-26Add flags to request TOPIC and NAMES on client connectJune McEnroe
2019-10-26OopsJune McEnroe
2019-10-26Disconnect client on unknown commandJune McEnroe
During registration, no other commands should be sent. Afterwards, only intercepted commands will get parsed.
2019-10-26Allow reading sensitive information from filesJune McEnroe
2019-10-26Add rc scriptJune McEnroe
2019-10-25Add install and uninstall targetsJune McEnroe
2019-10-25Expand documentationJune McEnroe
2019-10-25Add AGPLv3 notice on client registrationJune McEnroe
OwO
2019-10-25Rename project pounceJune McEnroe