Mercurial > hg > nnchat
comparison nnchat.c @ 175:86904a43c339
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 Nov 2010 07:50:48 +0200 |
parents | f5518f10dd1a |
children | 8c493b5671bd |
comparison
equal
deleted
inserted
replaced
174:f5518f10dd1a | 175:86904a43c339 |
---|---|
1156 nn_editbuf_delete(editBuf, editBuf->pos); | 1156 nn_editbuf_delete(editBuf, editBuf->pos); |
1157 update = TRUE; | 1157 update = TRUE; |
1158 break; | 1158 break; |
1159 | 1159 |
1160 | 1160 |
1161 case KEY_IC: /* F1 = Toggle insert / overwrite mode */ | 1161 case KEY_IC: /* Ins = Toggle insert / overwrite mode */ |
1162 insertMode = !insertMode; | 1162 insertMode = !insertMode; |
1163 update = TRUE; | 1163 update = TRUE; |
1164 break; | 1164 break; |
1165 | 1165 |
1166 case 0x10a: /* F2 = Clear editbuffer */ | 1166 case 0x10a: /* F2 = Clear editbuffer */ |
1167 nn_editbuf_clear(editBuf); | 1167 nn_editbuf_clear(editBuf); |
1168 update = TRUE; | 1168 update = TRUE; |
1169 break; | 1169 break; |
1170 | 1170 |
1171 case 0x10c: /* F3 = Ignore mode */ | 1171 case 0x10d: /* F5 = Ignore mode */ |
1172 setIgnoreMode = !setIgnoreMode; | 1172 setIgnoreMode = !setIgnoreMode; |
1173 printMsg("Ignore mode = %s\n", setIgnoreMode ? "ON" : "OFF"); | 1173 printMsg("Ignore mode = %s\n", setIgnoreMode ? "ON" : "OFF"); |
1174 break; | |
1175 | |
1176 case 0x111: /* F9 = Quit */ | |
1177 printMsg("Quitting per user request.\n"); | |
1178 exitProg = TRUE; | |
1179 break; | 1174 break; |
1180 | 1175 |
1181 case 0x110: /* F8 = switch between PRV */ | 1176 case 0x110: /* F8 = switch between PRV */ |
1182 if (setPrvMode) | 1177 if (setPrvMode) |
1183 setPrvMode = FALSE; | 1178 setPrvMode = FALSE; |
1184 else { | 1179 else { |
1185 if (setTarget != NULL) | 1180 if (setTarget != NULL) |
1186 setPrvMode = TRUE; | 1181 setPrvMode = TRUE; |
1187 } | 1182 } |
1188 update = TRUE; | 1183 update = TRUE; |
1184 break; | |
1185 | |
1186 case 0x111: /* F9 = Quit */ | |
1187 printMsg("Quitting per user request.\n"); | |
1188 exitProg = TRUE; | |
1189 break; | 1189 break; |
1190 | 1190 |
1191 case 0x09: /* Tab = complete username */ | 1191 case 0x09: /* Tab = complete username */ |
1192 performTabCompletion(editBuf); | 1192 performTabCompletion(editBuf); |
1193 update = TRUE; | 1193 update = TRUE; |