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 'alacritty', 

14 'apple_terminal', 

15 'bobcat', 

16 'contour', 

17 'extraterm', 

18 'foot', 

19 'ghostty', 

20 'iterm2', 

21 'kitty', 

22 'konsole', 

23 'mintty', 

24 'mlterm', 

25 'pterm', 

26 'rio', 

27 'st', 

28 'terminology', 

29 'urxvt', 

30 'vte', 

31 'warp', 

32 'wezterm', 

33 'xterm', 

34 'xterm.js', 

35}) 

36 

37ALIASES = { 

38 'hyper': 'xterm.js', 

39 'iterm.app': 'iterm2', 

40 'putty': 'pterm', 

41 'rxvt': 'urxvt', 

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

43 'st-256color': 'st', 

44 'tabby': 'xterm.js', 

45 'vscode': 'xterm.js', 

46 'warpterminal': 'warp', 

47 'xterm-ghostty': 'ghostty', 

48 'xterm-kitty': 'kitty', 

49}