Python Forum

Full Version: script wanted: clock for text mode screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i would like to see someone write a script to draw a big digital clock on the full text mode screen, updated as fast as it can, but not faster than every second.  it should fit the screen, whatever size it is (i have code to get the screen size in linux).  it should display 6 digits or either 4 or 6 digits if there some option to display the other number of digits (i want to display 6 digits one way or another).  showing the date (in ISO format, YYYY-MM-DD) in normal characters in the lower left corner is a plus.
https://github.com/tenox7/aclock

oh wait you said digital clock, nevermind thats too easy.
easy... maybe! the font scaling to fit the screen could be hard. one possible way would be to do it graphically not displayed in a buffer with pixels for each character, extract the pixels, print characters for each pixel. i want to see what someone comes up with. my text screen is not 80x24 like a lot of people might have. some are 166x46 and some are 184x50.