summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui.c b/ui.c
index 172120b..8f813b4 100644
--- a/ui.c
+++ b/ui.c
@@ -497,9 +497,9 @@ static void keyMeta(wchar_t ch) {
 	}
 }
 
-static void keyChar(wchar_t ch) {
+static void keyCtrl(wchar_t ch) {
 	switch (ch) {
-		break; case CTRL(L'L'): clearok(curscr, true);
+		break; case L'L': clearok(curscr, true);
 	}
 }
 
@@ -515,8 +515,10 @@ void uiRead(void) {
 			continue;
 		} else if (meta) {
 			keyMeta(ch);
+		} else if (iswcntrl(ch)) {
+			keyCtrl(ch ^ L'@');
 		} else {
-			keyChar(ch);
+			// TODO: Insert.
 		}
 		meta = false;
 	}
>Handle /nick and /quitJune McEnroe 2018-08-04Track own nickJune McEnroe 2018-08-04Word all status messages in presentJune McEnroe 2018-08-03Handle inputJune McEnroe 2018-08-03Track own usernameJune McEnroe 2018-08-03Use a wide pad for the topicJune McEnroe 2018-08-03Ignore NOTICEs not sent to the channelJune McEnroe 2018-08-03Handle KICK and NICKJune McEnroe 2018-08-03Continue on EINTR from pollJune McEnroe 2018-08-03Handle ACTIONsJune McEnroe 2018-08-03Use more octal char literalsJune McEnroe 2018-08-03Send a WHO in response to NAMES to get usernamesJune McEnroe 2018-08-03Colorize nicks and channelsJune McEnroe 2018-08-03Add support for mIRC colorsJune McEnroe 2018-08-03Handle bold, italic, underlineJune McEnroe 2018-08-03Add prift function for "prefix shift"June McEnroe 2018-08-03Link with -lcurseswJune McEnroe 2018-08-02Use libtls "compat" ciphersJune McEnroe 2018-08-02Add UI and handle some kinds of server messagesJune McEnroe 2018-08-02Add chroot.tar targetJune McEnroe