Properly use the G0/G1 charsets only to map characters being drawn to the screen. And only decode bytes using either Latin-1 or UTF-8, defaulting to UTF-8 at startup/reset.
kitty - A terminal emulator
Resources on terminal behavior
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
Description
Languages
Python
43.6%
C
28.3%
Go
20%
Objective-C
6%
Shell
1.5%
Other
0.5%