Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: how to strip VT100 escape sequences?

by Fastolfe (Vicar)
on Dec 19, 2001 at 19:18 UTC ( [id://133136]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: how to strip VT100 escape sequences?
in thread how to strip VT100 escape sequences?

I'm sure the original poster appreciates the tips.. Though my post wasn't so much on how to do what he was doing (strip VT100 escape sequences), but how he might figure it out for himself. I didn't do anything beyond his requirements deliberately (because I can't speak for all escape sequences).
  • Comment on Re: Re: Re: how to strip VT100 escape sequences?

Replies are listed 'Best First'.
Re: Re: Re: Re: how to strip VT100 escape sequences?
by guillaumerava (Initiate) on Dec 20, 2001 at 04:57 UTC
    I appreciate it; it is true that your input answers exactly my specifications.
    However I wasn't sure about the VT100 sequences, and I appreciate the other inputs.
    Meaningwhile a friend pointed me to a linux man page specifying the VT102 sequences : man console_codes, and it appears that other formats exist; for example: ESC > for selecting numeric keypad mode, ESC % for selecting character set, etc. However it seems that the control sequences always have the same format, I quote from man console_codes:
    • CSI (or ESC [) is followed by a sequence of parameters, at most NPAR (16), that are decimal numbers separated by semicolons. An empty or absent parameter is taken to be 0. The sequence of parameters may be preceded by a single question mark.
    • However, after CSI [ (or ESC [ [) a single character is read and this entire sequence is ignored. (The idea is to ignore an echoed function key.)
    • The action of a CSI sequence is determined by its final character. "
    This final character may be @, A..Z, a..z, and ` (backquote)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://133136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found