diff options
Diffstat (limited to '.escape_codes_bash.py')
-rw-r--r-- | .escape_codes_bash.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/.escape_codes_bash.py b/.escape_codes_bash.py deleted file mode 100644 index 8510c5eaaf48..000000000000 --- a/.escape_codes_bash.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/python - -""" -Forward and Backward lookups for Bash escape sequences -""" - -import sys, re - - -literal_to_bash = { - 'ESC': '^[', - - 'UP-ARROW': '^[OA', - 'RIGHT-ARROW': '^[OC', - 'DOWN-ARROW': '^[OB', - 'LEFT-ARROW': '^[OD', - - 'F1': '^[OP', - 'F2': '^[OQ', - 'F3': '^[OR', - 'F4': '^[OS', - 'F5': '^[15~', - 'F6': '^[17~', - 'F7': '^[18~', - 'F8': '^[19~', - 'F9': '^[20~', - 'F10': '^[21~', - 'F11': None, - 'F12': '^[24~' -} - -bash_to_literal = { - v: k for k, v in literal_to_bash.items() -} - -el = sys.argv[1] - -print '{0}: "{1}"'.format(el, literal_to_bash[el]) |