in reply to ASCII analog clock

Pretty Neat. but I experience 2 problems with it on linux. I am using the framebuffer console. I wonder if it's the framebuffer?

1. On my monitor, in console mode, it dosn't jitter and looks nice, except the "bottom" of the clock is reflected above the clock. I see 1 and a half clocks.

2. Most annoying. When run in an xterm, every second, the whole clock jitters up and down 1 line. Very hard to look at. I also see 1 and a half clock in the xterm, if I am at nearly fullscreen size.


I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: ASCII analog clock
by polettix (Vicar) on Mar 20, 2005 at 16:24 UTC
    That's pretty strange to me, because I actually tested it inside an xterm.

    Anyway, the real core function produces a text string with newlines that simply gets printed in the main while loop. I actually don't know how to clear the terminal screen from inside perl, so the best I could afford was to simply scroll. To solve the console mode problem, the best you can do is probably to increase the clock height (which is the second parameter you provide to the script).

    I've developed a version that uses Tk to pop up an ad-hoc window for the clock, but I actually find it quite unuseful to have to pop up a graph window for an ascii-based clock!

    If I find some solution for the screen clear which does not require strange modules I'll change the implementation and warn you, be sure. In the meantime, thanks for your feedback.

    Flavio

    -- Don't fool yourself.