… | |
… | |
91 | |
91 | |
92 | # Bourne/Korn/POSIX family of shells: |
92 | # Bourne/Korn/POSIX family of shells: |
93 | [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know |
93 | [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know |
94 | if [ ${TERM:-foo} = xterm ]; then |
94 | if [ ${TERM:-foo} = xterm ]; then |
95 | stty -icanon -echo min 0 time 15 # see if enhanced rxvt or not |
95 | stty -icanon -echo min 0 time 15 # see if enhanced rxvt or not |
96 | echo -n '^[Z' |
96 | printf "\eZ" |
97 | read term_id |
97 | read term_id |
98 | stty icanon echo |
98 | stty icanon echo |
99 | if [ ""${term_id} = '^[[?1;2C' -a ${DISPLAY:-foo} = foo ]; then |
99 | if [ ""${term_id} = '^[[?1;2C' -a ${DISPLAY:-foo} = foo ]; then |
100 | echo -n '^[[7n' # query the rxvt we are in for the DISPLAY string |
100 | printf '\e[7n' # query the rxvt we are in for the DISPLAY string |
101 | read DISPLAY # set it in our local shell |
101 | read DISPLAY # set it in our local shell |
102 | fi |
102 | fi |
103 | fi |
103 | fi |
104 | |
104 | |
105 | How do I compile the manual pages on my own? |
105 | How do I compile the manual pages on my own? |
106 | You need to have a recent version of perl installed as /usr/bin/perl, |
106 | You need to have a recent version of perl installed as /usr/bin/perl, |
… | |
… | |
206 | your picture with gimp or any other tool: |
206 | your picture with gimp or any other tool: |
207 | |
207 | |
208 | convert wallpaper.jpg -blur 20x20 -modulate 30 background.jpg |
208 | convert wallpaper.jpg -blur 20x20 -modulate 30 background.jpg |
209 | urxvt -pixmap "background.jpg;:root" |
209 | urxvt -pixmap "background.jpg;:root" |
210 | |
210 | |
211 | That works. If you think it doesn't, you lack libAfterImage or |
211 | That works. If you think it doesn't, you lack GDK-PixBuf support, or you |
212 | GDK-PixBuf support, or you are unable to read. |
212 | are unable to read. |
213 | |
213 | |
214 | 3. Use an ARGB visual: |
214 | 3. Use an ARGB visual: |
215 | |
215 | |
216 | urxvt -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc |
216 | urxvt -depth 32 -fg grey90 -bg rgba:0000/0000/4444/cccc |
217 | |
217 | |
… | |
… | |
532 | It is possible to toggle between "^H" and "^?" with the DECBKM private |
532 | It is possible to toggle between "^H" and "^?" with the DECBKM private |
533 | mode: |
533 | mode: |
534 | |
534 | |
535 | # use Backspace = ^H |
535 | # use Backspace = ^H |
536 | $ stty erase ^H |
536 | $ stty erase ^H |
537 | $ echo -n "^[[?67h" |
537 | $ printf "\e[?67h" |
538 | |
538 | |
539 | # use Backspace = ^? |
539 | # use Backspace = ^? |
540 | $ stty erase ^? |
540 | $ stty erase ^? |
541 | $ echo -n "^[[?67l" |
541 | $ printf "\e[?67l" |
542 | |
542 | |
543 | This helps satisfy some of the Backspace discrepancies that occur, but |
543 | This helps satisfy some of the Backspace discrepancies that occur, but |
544 | if you use Backspace = "^H", make sure that the termcap/terminfo value |
544 | if you use Backspace = "^H", make sure that the termcap/terminfo value |
545 | properly reflects that. |
545 | properly reflects that. |
546 | |
546 | |
… | |
… | |
774 | |
774 | |
775 | REMOTE=remotesystem.domain |
775 | REMOTE=remotesystem.domain |
776 | infocmp rxvt-unicode | ssh $REMOTE "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti" |
776 | infocmp rxvt-unicode | ssh $REMOTE "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti" |
777 | |
777 | |
778 | One some systems you might need to set $TERMINFO to the full path of |
778 | One some systems you might need to set $TERMINFO to the full path of |
779 | $HOME/.terminfo for this to work. |
779 | $HOME/.terminfo for this to work. Debian systems have a broken tic which |
|
|
780 | will not be able to overwrite the existing rxvt-unicode terminfo entry - |
|
|
781 | you might have to manually delete all traces of rxvt-unicode* from |
|
|
782 | /etc/terminfo. |
780 | |
783 | |
781 | If you cannot or do not want to do this, then you can simply set |
784 | If you cannot or do not want to do this, then you can simply set |
782 | "TERM=rxvt" or even "TERM=xterm", and live with the small number of |
785 | "TERM=rxvt" or even "TERM=xterm", and live with the small number of |
783 | problems arising, which includes wrong keymapping, less and different |
786 | problems arising, which includes wrong keymapping, less and different |
784 | colours and some refresh errors in fullscreen applications. It's a nice |
787 | colours and some refresh errors in fullscreen applications. It's a nice |
… | |
… | |
962 | When you want to use e.g. kinput2, it must be set to "@im=kinput2". |
965 | When you want to use e.g. kinput2, it must be set to "@im=kinput2". |
963 | For scim, use "@im=SCIM". You can see what input method servers are |
966 | For scim, use "@im=SCIM". You can see what input method servers are |
964 | running with this command: |
967 | running with this command: |
965 | |
968 | |
966 | xprop -root XIM_SERVERS |
969 | xprop -root XIM_SERVERS |
967 | |
|
|
968 | |
|
|
969 | |
970 | |
970 | My input method wants <some encoding> but I want UTF-8, what can I do? |
971 | My input method wants <some encoding> but I want UTF-8, what can I do? |
971 | You can specify separate locales for the input method and the rest of |
972 | You can specify separate locales for the input method and the rest of |
972 | the terminal, using the resource "imlocale": |
973 | the terminal, using the resource "imlocale": |
973 | |
974 | |