Luit Valley Academy

the -c switch makes luit act like as a simple interpreter from stdin to stdout without its wrapping a child (your shell by default) in a pty and handling its i/o instead. if you also do: luit -olog /dev/tty -c outfile luit will write to both your terminal and the outfile. basically the -olog switch will log to a named file a copy of all that luit writes to its output as it writes it ...
Luit Valley Academy 1

terminal - How to write a luit command that outputs a file - Unix ...

If I install the packages with apt install lxde-core chromium xterm # works the package luit isn't installed at all. ... luit is only recommended in the xterm package

2 You could use luit, which would let you run your cp850 application in (whatever locale you can find for this) in a UTF-8 terminal, and let luit do the translation to/from the UTF-8. For what it's worth, a screenshot of cp850 with luit: The screenshots were setup by a set of scripts which displayed a test-screen for each locale encoding.

Luit Valley Academy 4

By the way, when excute the luit command, I got "Warning: couldn't set locale. Segmentation fault "

The downside of luit is that it doesn't support the wealth of encodings supported by libiconv. The upside is it's available almost everywhere. Transcode terminal encoding on the fly (in-band; hack): ttyconv is a hack I wrote many years ago (initially in C, later redone in Python) which uses libiconv to transcode terminal I/O.

Luit Valley Academy 6

Upon pressing é, my terminal sent 0xc3 0xa9, which luit translated to 0xe9, the shell line editor printed its echo as 0xe9 which luit translated back to 0xc3 0xa9 for it to display as é, but you can see od correctly received the 0xe9 byte which is the correct encoding of é in the ISO8859-15 charmap.

Luit Valley Academy 7