September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
10
Task/Draw-a-clock/Zkl/draw-a-clock.zkl
Normal file
10
Task/Draw-a-clock/Zkl/draw-a-clock.zkl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
var
|
||||
t=T("⡎⢉⢵","⠀⢺⠀","⠊⠉⡱","⠊⣉⡱","⢀⠔⡇","⣏⣉⡉","⣎⣉⡁","⠊⢉⠝","⢎⣉⡱","⡎⠉⢱","⠀⠶⠀"),
|
||||
b=T("⢗⣁⡸","⢀⣸⣀","⣔⣉⣀","⢄⣀⡸","⠉⠉⡏","⢄⣀⡸","⢇⣀⡸","⢰⠁⠀","⢇⣀⡸","⢈⣉⡹","⠀⠶ ");
|
||||
while(True){
|
||||
x:=Time.Date.ctime()[11,8] // or Time.Date.to24HString() (no seconds)
|
||||
.pump(List,fcn(n){ n.toAsc() - 0x30 }); //-->L(2,3,10,4,3,10,5,2)
|
||||
print("\e[H\e[J"); // home and clear screen on ANSI terminals
|
||||
println(x.pump(String,t.get),"\n",x.pump(String,b.get));
|
||||
Atomic.sleep(1);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue