Quoth Joe Smith <>:
> Ben Morrow wrote:
>
> > use Term::ANSIScreen qw/:screen :cursor/;
> >
> > locate 1, 1;
> > cls;
> > print "...";
> >
> > For some reason I have found that both cls and clline only work for me
> > if I locate to the start of the region to be cleared first.
>
> That's a bug in your terminal emulator; it is not responding to escape
> sequences as per the ANSI specs.
>
> cldown = "\x33[0J" = clear from location to end of screen
> clup = "\x33[1J" = clear from beginning of screen to location
> cls = "\x33[2J" = clear the entire screen
I suspected as much. I didn't *really* think it likely that there would
be a bug in a module as simple as Term::ANSIScreen

.
> > presuming this is a bug in the linux console driver
.
>
> Works fine with xterm, gnome-terminal, and the Linux 2.4.20 console.
Linux 2.6.3 console, in UTF-8 mode. I suspect the latter may be the
problem...
Ben
--
Heracles: Vulture! Here's a titbit for you / A few dried molecules of the gall
From the liver of a friend of yours. / Excuse the arrow but I have no spoon.
(Ted Hughes, [ Heracles shoots Vulture with arrow. Vulture bursts into ]
/Alcestis/) [ flame, and falls out of sight. ]