diff --git a/doc/faq.html b/doc/faq.html index 917ca4cf..df39415f 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -41,7 +41,7 @@
-4.1. How do I open a file with a name beginning with '+' from the command line?
- 4.2. Ack! My Backspace/Delete/Enter/Meta/double bucky key doesn't seem to work! What can I do?
+ 4.2. How can I make Ctrl+Shift+Left/Right select words on urxvt?
4.3. Ack! My numeric keypad's keys don't work properly when NumLock is off! What can I do?
4.4. With what keystroke can I paste text from the clipboard into nano?
4.5. How do I select text for or paste text from the clipboard when nano's mouse support is turned on?
@@ -182,10 +182,27 @@ To open '+filename.txt' starting on line 1, column 20: nano +,20 +filename.txt
To open '+filename.txt' starting on line 10, column 20: nano +10,20 +filename.txt
To open '+filename.txt' starting on line 1 and 'filename.txt' starting on line 40: nano +1 +filename.txt +40 filename.txt
+Try setting your $TERM variable to 'vt100'. nano doesn't yet support every term entry under the sun.
-Bourne shell users (bash and sh): export TERM=vt100
- C Shell users (tcsh and csh): setenv TERM vt100
The urxvt terminal emulator produces non-standard escape sequences for the modified cursor keys. These deviant sequences are not listed in the terminfo database, which means that ncurses does not recognize them. The easiest way around this is to tell urxvt to produce xterm-compatible escape sequences for the relevant keystrokes. To achieve this, add the following lines to your ~/.Xresources file:
++ URxvt.iso14755_52: False + + URxvt.keysym.C-S-Up: \033[1;6A + URxvt.keysym.C-S-Down: \033[1;6B + URxvt.keysym.C-S-Right: \033[1;6C + URxvt.keysym.C-S-Left: \033[1;6D + + URxvt.keysym.M-Up: \033[1;3A + URxvt.keysym.M-Down: \033[1;3B + URxvt.keysym.M-Right: \033[1;3C + URxvt.keysym.M-Left: \033[1;3D + + URxvt.keysym.M-Insert: \033[2;3~ + URxvt.keysym.M-Delete: \033[3;3~ + + URxvt.keysym.M-Page_Up: \033[5;3~ + URxvt.keysym.M-Page_Down: \033[6;3~+Then run xrdb ~/.Xresources and restart your urxvt terminal. Now Ctrl+Shift+Left and Ctrl+Shift+Right will select words, Alt+Up and Alt+Down will scroll the text without moving the cursor, and several such things more.
You can use the -K or --rawsequences option on the command line, or add the line set rawsequences to your .nanorc. However, nano's mouse support will be disabled if you do any of these things.