dse / vtclock

a giant text-mode clock
GNU General Public License v2.0
30 stars 6 forks source link

Fixed Ncurses screen drawing for -v and -c modes. #2

Closed nickbeee closed 7 years ago

nickbeee commented 7 years ago

None of the Ncurses screen-drawing stuff was working for me when calling with -v or -c. Clock appeared on screen but never updated but appeared that something was going on underneath. DIscovered that it needed to call wclear() before drawing the windows.

Blinking cursor never worked for the same reason then when I fixed the above it was wrongly positioned. Added the appropriate mvwin() to resolve this.

Been using this on a FreeBSD 4.x system since 2006 for an office clock. Must check the source on that box as it appears to work OK.

dse commented 7 years ago

Thanks, @nickbeee!