in reply to Re: How do you clear the current line?
in thread How do you clear the current line?

That's exactly what I'm looking for. I guess that explains all the weird ^[[D type output when pressing the cursor keys without anything tied to stdin.

I have a couple questions though... how compatible is this escape sequence? I am targeting as many POSIX compatible machines as possible. I would use Term::Cap, but I know that many systems are phasing out termcap completely, including Debian GNU/Linux and AIX. Obviously it would be better to find out the exact character that the term expects based on it's TERM type, but termcap is the only mechanism I know for doing as such.

Also, is there a full list of all the possible escape characters like this one?

Thanks,
Nicodemus

  • Comment on Re: Re: How do you clear the current line?

Replies are listed 'Best First'.
Re: Re: Re: How do you clear the current line?
by mr.nick (Chaplain) on May 15, 2001 at 02:25 UTC
    That's a fairly basic ANSI sequence: existing long before Termcap or Termlib (way back to pre-1980 machines).

    I used this for the lookup of the sequence you were looking for. Normally, I just consult a very old Z80A programming manual I have lying around someplace.