Re: как сменить позицию курсора в окне терминала на perl perldoc Term::Cap man termcap ---- #!/usr/bin/perl -w use Term::Cap; my $ospeed = 9600; eval { # Get terminal output speed require POSIX; my $termios = new POSIX::Termios; $termios->getattr; $ospeed = $termios->getospeed; }; # allocate and initialize a terminal structure $terminal = Term::Cap->Tgetent({ TERM => undef, OSPEED => $ospeed }); $terminal->Trequire(qw/cm cl rc sc/); # Запомнить поз. курсора print $terminal->Tputs('sc', 1); # Очистить экран print $terminal->Tputs('cl', 1); for my $x (1..10) { for my $y (1..10) { # Переместить курсор в нужную позицию my $goto = $terminal->Tgoto('cm', $x * 5, $y); print $goto, $x * $y; } } # Вернуть поз. курсора print $terminal->Tputs('rc', 1); ---- anonymous (07.06.03 21:59:35 MSD) Ссылка
Re: как сменить позицию курсора в окне терминала на perl спасибо. anonymous (07.06.03 22:02:20 MSD) Ссылка