M
Martijn Lievaart
Hi,
I googled, but came up with nothing.
What I want to do is translate terminal codes to readable text. So for an
xterm, "\e[2A" should translate to something like "<UP 2 LINES>".
Obviously there are a lot of terminals out there, any reasonable subset
will do.
Is there any perl module that will help me with this? Or would there be a
way to "reverse" the termcap information? Or do I have to program this
myself for any and all terminals out there? (I started on xterm, it's
doable, but a lot of work, I don't want to repeat that for all and every
terminal out there.)
TIA,
M4
I googled, but came up with nothing.
What I want to do is translate terminal codes to readable text. So for an
xterm, "\e[2A" should translate to something like "<UP 2 LINES>".
Obviously there are a lot of terminals out there, any reasonable subset
will do.
Is there any perl module that will help me with this? Or would there be a
way to "reverse" the termcap information? Or do I have to program this
myself for any and all terminals out there? (I started on xterm, it's
doable, but a lot of work, I don't want to repeat that for all and every
terminal out there.)
TIA,
M4