Character mode terminal access for Perl