Skip Menu |

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

Report information
The Basics
Id: 75862
Status: resolved
Priority: 0/
Queue: Term-Screen

People
Owner: jns [...] gellyfish.co.uk
Requestors: javibarroso [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.03
Fixed in: (no value)



Subject: Please add visible and invisible cursor option
Please, add curvis and curinvis functions See the attached patch Thank you very much
Subject: libterm_screen_add_cursor_visibility.patch
--- /usr/share/perl5/Term/Screen.pm.orig 2012-03-18 19:31:04.000000000 +0100 +++ /usr/share/perl5/Term/Screen.pm 2012-03-18 19:37:44.000000000 +0100 @@ -284,6 +284,32 @@ return $this; } +=item curvis() + +The vs value from termcap - make cursor very visible + +=cut + +sub curvis +{ + my $this = shift; + $this->term()->Tputs( 'vs', 1, *STDOUT ); + return $this; +} + +=item curinvis() + +The vi value from termcap - make cursor invisible + +=cut +sub curinvis +{ + my $this = shift; + $this->term()->Tputs( 'vi', 1, *STDOUT ); + return $this; +} + + =item clrscr() Clear the screen and home cursor
Hi, I've applied this in https://github.com/jonathanstowe/Term-Screen/commit/efbb2d427534e2e4ad2a22cdc4b01495d5d52a5c it will be in the next release. Thanks.