Python Forum
script wanted: clock for text mode screen - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: script wanted: clock for text mode screen (/thread-7178.html)



script wanted: clock for text mode screen - Skaperen - Dec-25-2017

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.


RE: script wanted: clock for text mode screen - metulburr - Dec-25-2017

https://github.com/tenox7/aclock

oh wait you said digital clock, nevermind thats too easy.


RE: script wanted: clock for text mode screen - Skaperen - Dec-26-2017

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.