Re: Display Portions of an Image

Eric Andreychek wrote:

That is, if I simply add to the bottom of the above code:

  print "Something is fishy";

The image happily redraws itself.

Does anyone have any suggestions on a better way to get this thing to redraw,
without needing to output anything?  FWIW, outputting text only fixes the
problem when I output to STDOUT.  Using warn to print to STDERR will not fix
it, the image doesn't get redrawn in that case.

Any thoughts would be great, thanks!

I suppose your code is inside a callback which doesn't return a value 
(and in fact returns false)? After adding the print() statement your 
callback now returns true. So probably adding a simple "return 1" at the
end of the subroutine could do the trick.



sub i($){print$_[0]}*j=*ENV;sub w($){sleep$_[0]}sub _($){i"$p$c > ",w
1,$_=$_[0],tr;i-za-h,;a-hi-z ;,i$_,w 1,i"\n"}$|=1;$f='HO';($c=$j{PWD}
)=~s/$j{$f."ME"}/~/;$p="$j{USER}\ $j{HOSTNAME}:";_"kl",$c='~',_"zu,".
"-zn,*",_"#,epg,lw,gwc,mfmkcbm,cvsvwev,uiqt,kwvbmvb?",i"$p$c > ";w 99

Attachment: pgp6wk4jxg_Vj.pgp
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]