# inputrc-atascii - Readline bindings for ATASCII # $Id: inputrc-atascii,v 1.10 2015/04/12 20:35:50 bsittler Exp bsittler $ # # The Atari 400 and Atari 800 home computers used a bizarre # not-quite-ASCII console character encoding called ATASCII ("Atari # ASCII") which makes them hard to use as terminals. They support # minimal relative cursor motion, clear screen, and newline. The ASCII # characters '`', '{', '}', and '~' are not present, and there is an # extensive alternate character set overlaid on the ASCII control # codes and on some of the printable ASCII codes. # # The following stty settings were found to be helpful in ~/.bashrc: # # if [[ -t 0 ]]; then case :"$TERM" in # (:atascii-80x24|:xep80) # stty rows 24 columns 80 quit ^- erase "$(printf '\176')" eol "$(printf '\233')" cs8 -parenb \ # -istrip -ixon -ixoff -ixany -onlcr opost 2>/dev/null # export LC_ALL=C # export CHARSET=csASCII # ;; # (:atascii|:atascii-*|:bobterm) # stty rows 24 columns 40 quit ^- erase "$(printf '\176')" eol "$(printf '\233')" cs8 -parenb \ # -istrip -ixon -ixoff -ixany -onlcr opost 2>/dev/null # export LC_ALL=C # export CHARSET=csASCII # ;; # esac; fi # # Notable readline bindings: # # INVERSE , for ' # INVERSE @ and INVERSE ' for \` # INVERSE <, INVERSE ( and INVERSE [ for { # INVERSE >, INVERSE ) and INVERSE ] for } # INVERSE ^, INVERSE - and INVERSE " for ~ # RETURN for ^M (Enter, CR) # TAB for Ctrl- prefix # TAB TAB, TAB ESCAPE, TAB SPACE and TAB 9 for ^I (Tab, HT) # TAB RETURN for ^J (Newline, LF) # TAB , for ' # TAB @ and TAB ' for \` # TAB < and TAB ( for { # TAB : and TAB ! for | # TAB > and TAB ) for } # TAB - and TAB " for ~ # TAB UP for reverse-search-history # TAB DOWN for forward-search-history # TAB LEFT for beginning-of-line # TAB RIGHT for end-of-line # # Typical usage in ~/.inputrc: # # $if term=atascii # $include ~/share/inputrc-atascii # $endif # $if term=bobterm # $include ~/share/inputrc-atascii # $endif # $if term=xep80 # $include ~/share/inputrc-atascii # $endif # # The mapping from ATASCII to ASCII for input is incomplete. set input-meta On set output-meta Off set colored-stats Off "\x1c": previous-history "\x1d": next-history "\x1e": backward-char "\x1f": forward-char "\x9b": "\r" "~": backward-delete-char "\x7f\x1c": reverse-search-history "\x7f\x1d": forward-search-history "\x7f\x1e": beginning-of-line "\x7f\x1f": end-of-line "\x7f\x7f": "\t" "\x7f?": forward-backward-delete-char "\x7f\e": "\t" "\x7f ": "\t" "\x7f9": "\t" "\x7f\x9b": "\n" "\x7f@": "`" "\x7f'": "`" "\x7f,": "'" "\x7f<": "{" "\x7f(": "{" "\x7f:": "|" "\x7f!": "|" "\x7f>": "}" "\x7f)": "}" "\x7f-": "\C-v~" "\x7f\"": "\C-v~" "\x7f2": "\x00" "\x7fA": "\C-A" "\x7fB": "\C-B" "\x7fC": "\C-C" "\x7fD": "\C-D" "\x7fE": "\C-E" "\x7fF": "\C-F" "\x7fG": "\C-G" "\x7fH": "\C-H" "\x7fI": "\C-I" "\x7fJ": "\C-J" "\x7fK": "\C-K" "\x7fL": "\C-L" "\x7fM": "\C-M" "\x7fN": "\C-N" "\x7fO": "\C-O" "\x7fP": "\C-P" "\x7fQ": "\C-Q" "\x7fR": "\C-R" "\x7fS": "\C-S" "\x7fT": "\C-T" "\x7fU": "\C-U" "\x7fV": "\C-V" "\x7fW": "\C-W" "\x7fX": "\C-X" "\x7fY": "\C-Y" "\x7fZ": "\C-Z" "\x7f[": "\C-[" "\x7f\\": "\C-\\" "\x7f]": "\C-]" "\x7f^": "\C-^" "\x7f6": "\C-^" "\x7f_": "\C-_" "\x7f`": "\x00" "\x7fa": "\C-a" "\x7fb": "\C-b" "\x7fc": "\C-c" "\x7fd": "\C-d" "\x7fe": "\C-e" "\x7ff": "\C-f" "\x7fg": "\C-g" "\x7fh": "\C-h" "\x7fi": "\C-i" "\x7fj": "\C-j" "\x7fk": "\C-k" "\x7fl": "\C-l" "\x7fm": "\C-m" "\x7fn": "\C-n" "\x7fo": "\C-o" "\x7fp": "\C-p" "\x7fq": "\C-q" "\x7fr": "\C-r" "\x7fs": "\C-s" "\x7ft": "\C-t" "\x7fu": "\C-u" "\x7fv": "\C-v" "\x7fw": "\C-w" "\x7fx": "\C-x" "\x7fy": "\C-y" "\x7fz": "\C-z" "\x7f{": "\C-[" "\x7f|": "\C-\\" "\x7f}": "\C-]" "\x7f~": "\C-^" "\xa2": "\C-v~" "\xa7": "`" "\xa8": "{" "\xa9": "}" "\xac": "'" "\xad": "\C-v~" "\xbc": "{" "\xbe": "}" "\xc0": "`" "\xdb": "{" "\xdd": "}" "\xde": "\C-v~" "\xfd": "\C-g" "\xfe": forward-backward-delete-char # # $Log: inputrc-atascii,v $ # Revision 1.10 2015/04/12 20:35:50 bsittler # *** empty log message *** # # Revision 1.9 2015/04/09 16:17:13 bsittler # *** empty log message *** # # Revision 1.8 2015/04/09 05:03:53 bsittler # *** empty log message *** # # Revision 1.7 2015/04/09 03:32:15 bsittler # *** empty log message *** # # Revision 1.6 2015/04/09 02:47:22 bsittler # *** empty log message *** # # Revision 1.5 2015/04/09 01:31:03 bsittler # *** empty log message *** # # Revision 1.4 2015/04/09 01:06:30 bsittler # *** empty log message *** # # Revision 1.3 2015/04/09 00:29:37 bsittler # *** empty log message *** # # Revision 1.2 2015/04/09 00:14:49 bsittler # *** empty log message *** # #