S
someone92
I'm trying to save and restore the current position of the console's
cursor in perl on FreeBSD 4.10 using the escape sequences without
success, FreeBSD do not seems to support it.
sub savecursorpos
{
print "\x1B[sm";
}
sub restorecusorpos
{
print "\x1B[um";
}
I also tried:
sub savecursorpos
{
print "\x1B7m";
}
sub restorecusorpos
{
print "\x1B8m";
}
even tput do not work:
print `tput sc`; # Get the code to save the current cursor position
print `tput rc`;
Is there a way to do this using termcap or terminfo ? or any other
functions?
cursor in perl on FreeBSD 4.10 using the escape sequences without
success, FreeBSD do not seems to support it.
sub savecursorpos
{
print "\x1B[sm";
}
sub restorecusorpos
{
print "\x1B[um";
}
I also tried:
sub savecursorpos
{
print "\x1B7m";
}
sub restorecusorpos
{
print "\x1B8m";
}
even tput do not work:
print `tput sc`; # Get the code to save the current cursor position
print `tput rc`;
Is there a way to do this using termcap or terminfo ? or any other
functions?