S
S
Siegurd12020-12-02 15:50:50
linux
Siegurd1, 2020-12-02 15:50:50

What library is used to parse VT100 terminal commands?

The old device outputs a table on the COM port in the form of VT100 sequences that are readable by any PuTTY like application that supports the TV100 terminal.
In the output table, only the values ​​change (20 values ​​on one screen). It looks like the output of processes with the top command in linux.
I want to use the microcontroller (arduino / avr / stm32) to read the desired values ​​​​from this table. I understand that you need to parse the VT100 sequences and read the values ​​themselves by the controller. Are there C/C++ libraries for this?
There are a lot of TV100 emulators around, but I do not need to control the device, but constantly read these 20 values ​​​​from it when updating each of them and write them to a float array.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Dubrovin, 2020-12-03
@z3apa3a

I don't think any special library is required, take the termcap entry for VT100 (man termcap), it contains a set of all escape sequences. Exclude these sequences from the input (or add processing if required) - you will get only text data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question