Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/wcwidth/table_term_programs.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

3 statements  

1""" 

2Canonical terminal names and TERM/TERM_PROGRAM aliases. 

3 

4This code generated by python wcwidth using ucs-detect project data. 

5 

6Terminal multiplexers (tmux, zellij, libvterm, screen) are excluded because their displayed 

7presentation depends on the host terminal; cursor-position reports from ucs-detect testing are not 

8reliable indicators of actual width. 

9""" 

10# pylint: skip-file 

11 

12KNOWN_TERMINALS = frozenset({ 

13 'absolutetelnet/ssh', 

14 'alacritty', 

15 'apple_terminal', 

16 'bobcat', 

17 'contour', 

18 'extraterm', 

19 'foot', 

20 'ghostty', 

21 'iterm2', 

22 'kitty', 

23 'konsole', 

24 'mintty', 

25 'mlterm', 

26 'pterm', 

27 'rio', 

28 'st', 

29 'terminology', 

30 'urxvt', 

31 'vte', 

32 'warp', 

33 'wezterm', 

34 'xterm', 

35 'xterm.js', 

36}) 

37 

38ALIASES = { 

39 'hyper': 'xterm.js', 

40 'iterm.app': 'iterm2', 

41 'putty': 'pterm', 

42 'rxvt': 'urxvt', 

43 'rxvt-unicode-256color': 'urxvt', 

44 'st-256color': 'st', 

45 'tabby': 'xterm.js', 

46 'vscode': 'xterm.js', 

47 'warpterminal': 'warp', 

48 'xterm-ghostty': 'ghostty', 

49 'xterm-kitty': 'kitty', 

50}