in reply to What time is it?

very nice.
you could also wrap the whole thing in this:
{ # clear the screen print "\ec"; # draw your clock <your code> # wait and redo sleep 1; redo }
also see these for my obfu'd timepieces - yours looks nicer!
Alex

Update: Actually i realised you only draw minutes, so you could sleep 60 - slightly less redrawing
Also I'm not sure print "\ec" works on everything - so perhaps a nicer way would be to use <check os here>?`clear`:`cls`;

Replies are listed 'Best First'.
Re: Re: What time is it?
by ambrus (Abbot) on Mar 25, 2004 at 20:47 UTC

    <check os here>?`clear`:`cls`;

    You need a print for that one, as `clear` actually prints escape sequence, so <check os here>?print`clear`:`cls`.

    Also, I think that just print`cls;clear` should work too, as on windows this gives cls a command-line argument which it probably ignores (or it obeys it and makes the console real shiny clear); on linux the clear should hide whatever error cls prints.