Page 1 of 1

libtsm - Terminal-emulator State Machine

Posted: Thu Jan 19, 2017 10:46 pm
by dchapiesky
Has anyone made use of this as part of a vga console driver?
TSM is a state machine for DEC VT100-VT520 compatible terminal emulators. It tries to support all common standards while keeping compatibility to existing emulators like xterm, gnome-terminal, konsole, ..

TSM itself does not provide any rendering nor window management. It is a simple plain state machine without any external dependencies. It can be used to implement terminal emulators, but also to implement other applications that need to interpret terminal escape sequences.
https://www.freedesktop.org/wiki/Softwa ... on/libtsm/

If I understand correctly, you attach it to render onto your VGA code and then bolt a stdout stream on it....

If you then had say, a curses application feeding stdout, then you get a text mode UI on your console.

I found an example in the OSV project and I am thinking I am going to do it.