changeset 171:35b1714eb3b2

Change F1 functionality to proper Insert key.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 15 Nov 2010 03:04:19 +0200
parents 8d4cdbeae606
children ffba05eb578c
files README nnchat.c
diffstat 2 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/README	Mon Nov 15 02:06:16 2010 +0200
+++ b/README	Mon Nov 15 03:04:19 2010 +0200
@@ -40,21 +40,25 @@
 arrow up/down     - Browse input history.
 ctrl+left/right   - Move cursor through words.
 
-ctrl+l            - Refresh/redraw screen.
+INS               - Toggle between insert and overwrite modes.
+DEL               - Delete one character at cursor position.
+Backspace         - Delete one character left to the cursor position.
 
-F1                - Toggle between insert and overwrite modes.
 F2                - Clear current edit buffer.
-F4                - Toggle ignore mode on/off.
+F5                - Toggle ignore mode on/off.
 F8                - Toggle private chat mode on/off.
 F9                - Quit.
 
+ctrl+L            - Refresh/redraw screen.
+
 
 Commands
 --------
 /to <user>        - Set target for private chat. Example: "/to foobar"
                     will set target to user "foobar". After this, pressing
                     function key F8 will toggle between private mode and
-                    public.
+                    public. Private chat mode is indicated by "username>"
+                    on the input line.
 
 /ignore [user]    - Toggle user to/from ignore. "/ignore" without specified
                     username will list users currently on the ignore list.
--- a/nnchat.c	Mon Nov 15 02:06:16 2010 +0200
+++ b/nnchat.c	Mon Nov 15 03:04:19 2010 +0200
@@ -1159,7 +1159,7 @@
                 break;
                 
 
-            case 0x109: /* F1 = Toggle insert / overwrite mode */
+            case KEY_IC: /* F1 = Toggle insert / overwrite mode */
                 insertMode = !insertMode;
                 update = TRUE;
                 break;