… | |
… | |
129 | |
129 | |
130 | # Bourne/Korn/POSIX family of shells: |
130 | # Bourne/Korn/POSIX family of shells: |
131 | [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know |
131 | [ ${TERM:-foo} = foo ] && TERM=xterm # assume an xterm if we don't know |
132 | if [ ${TERM:-foo} = xterm ]; then |
132 | if [ ${TERM:-foo} = xterm ]; then |
133 | stty -icanon -echo min 0 time 15 # see if enhanced rxvt or not |
133 | stty -icanon -echo min 0 time 15 # see if enhanced rxvt or not |
134 | echo -n '^[Z' |
134 | printf "\eZ" |
135 | read term_id |
135 | read term_id |
136 | stty icanon echo |
136 | stty icanon echo |
137 | if [ ""${term_id} = '^[[?1;2C' -a ${DISPLAY:-foo} = foo ]; then |
137 | if [ ""${term_id} = '^[[?1;2C' -a ${DISPLAY:-foo} = foo ]; then |
138 | echo -n '^[[7n' # query the rxvt we are in for the DISPLAY string |
138 | printf '\e[7n' # query the rxvt we are in for the DISPLAY string |
139 | read DISPLAY # set it in our local shell |
139 | read DISPLAY # set it in our local shell |
140 | fi |
140 | fi |
141 | fi |
141 | fi |
142 | |
142 | |
143 | =head3 How do I compile the manual pages on my own? |
143 | =head3 How do I compile the manual pages on my own? |
144 | |
144 | |
… | |
… | |
599 | It is possible to toggle between C<^H> and C<^?> with the DECBKM |
599 | It is possible to toggle between C<^H> and C<^?> with the DECBKM |
600 | private mode: |
600 | private mode: |
601 | |
601 | |
602 | # use Backspace = ^H |
602 | # use Backspace = ^H |
603 | $ stty erase ^H |
603 | $ stty erase ^H |
604 | $ echo -n "^[[?67h" |
604 | $ printf "\e[?67h" |
605 | |
605 | |
606 | # use Backspace = ^? |
606 | # use Backspace = ^? |
607 | $ stty erase ^? |
607 | $ stty erase ^? |
608 | $ echo -n "^[[?67l" |
608 | $ printf "\e[?67l" |
609 | |
609 | |
610 | This helps satisfy some of the Backspace discrepancies that occur, but |
610 | This helps satisfy some of the Backspace discrepancies that occur, but |
611 | if you use Backspace = C<^H>, make sure that the termcap/terminfo value |
611 | if you use Backspace = C<^H>, make sure that the termcap/terminfo value |
612 | properly reflects that. |
612 | properly reflects that. |
613 | |
613 | |