Skip Menu |
 

This queue is for tickets about the Term-ANSIScreen CPAN distribution.

Report information
The Basics
Id: 103221
Status: new
Priority: 0/
Queue: Term-ANSIScreen

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.50
Fixed in: (no value)



Subject: cls does not reset location as per documentation.

 

This only clears the screen, but retains the terminal position where it was.
perl -MTerm::ANSIScreen=cls -E' cls '
 

perl -MTerm::ANSIScreen=cls -E' cls ' |& xxd
00000000: 1b5b 324a                                .[2J


For proper clear-screen emulation, one needs to do:

perl -MTerm::ANSIScreen=cls,locate -E' cls; locate(1,1)'

perl -MTerm::ANSIScreen=cls,locate -E' cls; locate(1,1)' |& xxd
00000000: 1b5b 324a 1b5b 313b 3148                 .[2J.[1;1H


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.