diff --git a/doc/faq.html b/doc/faq.html index 331f3c5e..f01918e2 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -43,7 +43,7 @@

4. Running

- 4.1. Alt+Up does nothing on a Linux console. How can I make it work?
+ 4.1. Alt+Up does nothing on a Linux console. How can I make it scroll?
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?
@@ -178,14 +178,19 @@


4. Running

-

4.1. Alt+Up does nothing on a Linux console. How can I make it work?

+

4.1. Alt+Up does nothing on a Linux console. How can I make it scroll?

On Debian and its derivatives, the Alt+Up keystroke on a Linux console produces by default a 'KeyboardSignal', which normally does absolutely nothing and is useless - for the average user. To get the keystroke to work normally, run this in a Linux console:

+ for the average user. To get the keystroke to do what it ought to do (scroll the viewport + one row up), run this in a Linux console:

dumpkeys --full | sed s/KeyboardSignal/Up/ | sudo loadkeys -

-

You will need to run this command whenever you first switch to a Linux console. - Or you can put the command in your .bashrc or equivalent, conditionalized with: - if [ $TERM == linux ]; then ... ; fi.

+

You will need to run this command whenever you first switch to a Linux console.

+

Or you can (as root) execute the following little script just once:

+

for file in /etc/console-setup/cached*.kmap.gz; do
+     gunzip $file;
+     sed -i 's/KeyboardSignal/Up/' ${file%.gz};
+     gzip ${file%.gz};
+ done

4.2. How can I make Ctrl+Shift+Left/Right select words on urxvt?

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: