use strict; use warnings; use Test::More tests => 7; use Term::ReadKey; use Fcntl; if ( not exists $ENV{COLUMNS} ){ $ENV{COLUMNS} = 80; $ENV{LINES} = 24; } SKIP: { eval { if ( $^O =~ /Win32/i ){ sysopen( IN, 'CONIN$', O_RDWR ) or die "Unable to open console input:$!"; sysopen( OUT, 'CONOUT$', O_RDWR ) or die "Unable to open console output:$!"; } else{ if ( open( IN, "