lilalo

view l3prompt @ 154:71d6b2a6b8eb

Ветка с поддержкой sqlite в l3-agent'е
author igor@book.xt.vpn
date Mon Dec 28 22:00:37 2009 +0300 (2009-12-28)
parents 658b4ea105c1
children
line source
1 #!/usr/bin/perl
3 my $string=$ARGV[0];
4 my $insert="\e[1K\e[10D";
5 my $max=5;
7 while (length($string) > $max) {
8 $res .= substr($string, 0, $max).$insert;
9 $string = substr($string, $max);
10 }
11 $res .= $string.$insert;
12 print "$res";