Mercurial > hg > nnchat
comparison main.c @ 473:06aa00ba32a2
Remove unfinished internal help.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 07:45:36 +0300 |
parents | 53179f875131 |
children | 4ddc3d87242e |
comparison
equal
deleted
inserted
replaced
472:53179f875131 | 473:06aa00ba32a2 |
---|---|
1266 if (optLogFile) | 1266 if (optLogFile) |
1267 { | 1267 { |
1268 fclose(optLogFile); | 1268 fclose(optLogFile); |
1269 optLogFile = NULL; | 1269 optLogFile = NULL; |
1270 } | 1270 } |
1271 } | |
1272 | |
1273 | |
1274 void printHelp(void) | |
1275 { | |
1276 printMsgQ(currWin, "\n" | |
1277 "NNChat Help\n" | |
1278 "===========\n" | |
1279 "\n" | |
1280 "F1 This help.\n" | |
1281 "F2 \n" | |
1282 ); | |
1283 } | 1271 } |
1284 | 1272 |
1285 | 1273 |
1286 int main(int argc, char *argv[]) | 1274 int main(int argc, char *argv[]) |
1287 { | 1275 { |
1827 case KEY_IC: // Ins = Toggle insert / overwrite mode | 1815 case KEY_IC: // Ins = Toggle insert / overwrite mode |
1828 insertMode = !insertMode; | 1816 insertMode = !insertMode; |
1829 update = TRUE; | 1817 update = TRUE; |
1830 break; | 1818 break; |
1831 | 1819 |
1832 case KEY_F(1): // F1 = Print help | |
1833 printHelp(); | |
1834 updateMain = TRUE; | |
1835 break; | |
1836 | |
1837 case KEY_F(2): // F2 = Clear editbuffer | 1820 case KEY_F(2): // F2 = Clear editbuffer |
1838 nn_editbuf_clear(editBuf); | 1821 nn_editbuf_clear(editBuf); |
1839 update = TRUE; | 1822 update = TRUE; |
1840 break; | 1823 break; |
1841 | 1824 |