File: clear.pl

package info (click to toggle)
libio-prompt-perl 0.997004-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 228 kB
  • sloc: perl: 846; makefile: 2
file content (14 lines) | stat: -rwxr-xr-x 280 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/perl -w

use IO::Prompt;
use Data::Dumper 'Dumper';

if (prompt -clearfirst, -escape, "first> ", -line) {
    warn Dumper [ $_ ];
}

# Should not wipe screen, since previous call already did...

while (prompt -clearfirst, " next> ", -line) {
    warn Dumper [ $_ ];
}