To Almut:
Thanks for pointing out the problem. I am trying to solve it as you explained. But it seems that Term::ReadKey module non-blocking readline feature is NOT well supported in Windows either.
To rowdog:
Yes, I read the doc, unforturnely, my script works under windows, but fork() is NOT well supported in Wins. I tested it under both Ubuntu and Windows XP with the same code.In Linux, it works fine, while screen update still hangs at reading input, requires <enter> key to trigger the update.#!/usr/bin/perl my $i = 0; my $in; while( 1 ){ ++$i; my $pid = fork(); if ( $pid ){ $in = <>; chomp( $in ); print "Child: $in\n"; } else{ print "Parent: $i \n"; sleep 5; } }
Thanks,
Yun
In reply to Re^2: Sync messages for chatting peers
by kzle
in thread Sync messages for chatting peers
by kzle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |