Move IRC formatting reset to C-s

Opens C-n for window switching.
master
Curtis McEnroe 2019-02-22 23:56:55 -05:00
parent facc3aa9a0
commit c168e54f06
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
2 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
.Dd February 21, 2019
.Dd February 22, 2019
.Dt CATGIRL 1
.Os
.
@ -246,14 +246,12 @@ commands, nicks and channels.
.
.Ss IRC Formatting
.Bl -tag -width Ds -compact
.It Ic C-n
Reset formatting.
.It Ic C-o
Toggle bold.
This may need to be typed as
.Ic C-v C-o .
.It Ic C-r
Set or reset color.
.It Ic C-s
Reset formatting.
.It Ic C-t
Toggle italics.
.It Ic C-u

2
ui.c
View File

@ -493,9 +493,9 @@ static void keyChar(wchar_t ch) {
break; case CTRL(L'W'): edit(win->tag, EditKillBackWord, 0);
break; case CTRL(L'C'): edit(win->tag, EditInsert, IRCColor);
break; case CTRL(L'N'): edit(win->tag, EditInsert, IRCReset);
break; case CTRL(L'O'): edit(win->tag, EditInsert, IRCBold);
break; case CTRL(L'R'): edit(win->tag, EditInsert, IRCColor);
break; case CTRL(L'S'): edit(win->tag, EditInsert, IRCReset);
break; case CTRL(L'T'): edit(win->tag, EditInsert, IRCItalic);
break; case CTRL(L'U'): edit(win->tag, EditInsert, IRCUnderline);
break; case CTRL(L'V'): edit(win->tag, EditInsert, IRCReverse);