[p4] Terminal output in p4v tools
Gross, Steve
SGross at sjm.com
Mon Nov 12 14:21:55 PST 2007
>I must have found this with Google, because I don't know perl, but this
works for me:
>my( $oldHandle );
># Force a flush on STDOUT
>$oldHandle = select (STDOUT); # "select" STDOUT and save previously
selected handle
>$| = 1; # perform flush after each write to
STDOUT
>select ($oldHandle); # restore previously selected handle
Sounds workable in perl, anyway. I'm using python:
sys.stdout.write("some message\n")
sys.stdout.flush()
--Steve
More information about the perforce-user
mailing list