x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Perl CE console

Pavel Page Icon Posted 2011-08-17 5:17 PM
#
Avatar image of Pavel
Factorite (Junior)

Posts:
29
Location:
Czech Republic
Status:
Playing with PerlCE (R. Keuchel, V. Konovalov) I had found ANSI terminal capabilities in Perl's console. Not all commands are supported (f.e. color change are not supported), but the basic ones (cursor movement and clear screen) fortunately yes. Tiny example is better:

 
&cls; 
print &at(6, 25), "Hello world!";
<STDIN>;

# --------------------------------------------
# cursor position at (row, column)
sub at {
my ($row, $col) = @_;
return ("\e[" . $row . ';' . $col . 'H');
}

# --------------------------------------------
# clear screen
sub cls {
print "\e[2J";
}
 Top of the page
stingraze Page Icon Posted 2011-08-21 8:53 PM
#
Avatar image of stingraze
H/PC Vanguard

Posts:
3,656
Location:
Japan
Status:
Very cool. Does it support CPAN by any chance?

Edited by stingraze 2011-08-21 8:53 PM
 Top of the page
Pavel Page Icon Posted 2011-08-22 6:54 PM
#
Avatar image of Pavel
Factorite (Junior)

Posts:
29
Location:
Czech Republic
Status:
Direct installation of CPAN archives don't work (probably missing some help programes f.e. gzip). But I have installed some Perl modules on Win's Active Perl and have copied needed files manually to Perl CE on Jornada. I have been successful.
 Top of the page
stingraze Page Icon Posted 2011-09-02 3:15 AM
#
Avatar image of stingraze
H/PC Vanguard

Posts:
3,656
Location:
Japan
Status:
Thanks for the info. I will try it on my MP900C soon.
 Top of the page
Jump to forum:
Seconds to generate: 0.187 - Cached queries : 43 - Executed queries : 28