provide ability to display binary clock using unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Only for hardcore geeks... in a similar vein to lp:##705032, the attached script (uclock.sh) can display the time in hex, octal and if you are really crazy in binary too. It maps the unicode braille block to show the time in 3 blocks of "binary". A demonstration in ASCII...
If the time is 17:46:07, the binary mode of the clock script would show:
⢐ ⠲ ⢰
Script usage:
Usage: uclock.sh [options]
Options:
-b : Display binary clock (default)
-h : Show this help.
-l : Display leading zeros (hex and octal modes only).
-m : Show time in 24-hour military format
-n : Suppress newline at end of time.
-o : Display time in octal (base 8).
-s <sep> : Specify separator between hours and minutes
(and seconds if not disabled).
-u : Display alphabetics in upper-case (hex mode only).
-x : Disable time in hexadecimal (base 16).
-z : Disable display of seconds.
Related branches
- Dustin Kirkland : Pending requested
-
Diff: 978 lines (+921/-2)7 files modifieddebian/changelog (+13/-0)
usr/lib/byobu/Makefile.am (+1/-1)
usr/lib/byobu/uclock (+173/-0)
usr/lib/byobu/ugraph (+212/-0)
usr/lib/byobu/ulevel (+481/-0)
usr/lib/byobu/wastebasket (+39/-0)
usr/lib/byobu/wifi_quality (+2/-1)
Changed in byobu: | |
status: | Triaged → Fix Committed |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Hey James,
I was testing this script, and I get:
$ bash uclock.sh
uclock.sh: line 150: 09: value too great for base (error token is "09")
Can you take a look? Cheers!