summaryrefslogtreecommitdiffstats
path: root/contrib/python/wcwidth/py3/wcwidth/table_term_programs.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/wcwidth/py3/wcwidth/table_term_programs.py')
-rw-r--r--contrib/python/wcwidth/py3/wcwidth/table_term_programs.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/contrib/python/wcwidth/py3/wcwidth/table_term_programs.py b/contrib/python/wcwidth/py3/wcwidth/table_term_programs.py
new file mode 100644
index 00000000000..08d06dc1a42
--- /dev/null
+++ b/contrib/python/wcwidth/py3/wcwidth/table_term_programs.py
@@ -0,0 +1,49 @@
+"""
+Canonical terminal names and TERM/TERM_PROGRAM aliases.
+
+This code generated by python wcwidth using ucs-detect project data.
+
+Terminal multiplexers (tmux, zellij, libvterm, screen) are excluded because their displayed
+presentation depends on the host terminal; cursor-position reports from ucs-detect testing are not
+reliable indicators of actual width.
+"""
+# pylint: skip-file
+
+KNOWN_TERMINALS = frozenset({
+ 'alacritty',
+ 'apple_terminal',
+ 'bobcat',
+ 'contour',
+ 'extraterm',
+ 'foot',
+ 'ghostty',
+ 'iterm2',
+ 'kitty',
+ 'konsole',
+ 'mintty',
+ 'mlterm',
+ 'pterm',
+ 'rio',
+ 'st',
+ 'terminology',
+ 'urxvt',
+ 'vte',
+ 'warp',
+ 'wezterm',
+ 'xterm',
+ 'xterm.js',
+})
+
+ALIASES = {
+ 'hyper': 'xterm.js',
+ 'iterm.app': 'iterm2',
+ 'putty': 'pterm',
+ 'rxvt': 'urxvt',
+ 'rxvt-unicode-256color': 'urxvt',
+ 'st-256color': 'st',
+ 'tabby': 'xterm.js',
+ 'vscode': 'xterm.js',
+ 'warpterminal': 'warp',
+ 'xterm-ghostty': 'ghostty',
+ 'xterm-kitty': 'kitty',
+}