… | |
… | |
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, |
… | |
… | |
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 | |
… | |
… | |
965 | 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". |
966 | 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 |
967 | running with this command: |
967 | running with this command: |
968 | |
968 | |
969 | xprop -root XIM_SERVERS |
969 | xprop -root XIM_SERVERS |
970 | |
|
|
971 | |
|
|
972 | |
970 | |
973 | 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? |
974 | 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 |
975 | the terminal, using the resource "imlocale": |
973 | the terminal, using the resource "imlocale": |
976 | |
974 | |