feat: a ton of input handling and Go TUI logic
Main: Added main interface with big output box and small input box Effects: Added some blinking lights effect for the cursor to prompt user of where to enter stuff
This commit is contained in:
parent
024eb0c2bb
commit
dc16793ad7
3 changed files with 135 additions and 22 deletions
|
@ -10,8 +10,8 @@ func IncrementalPrint(scr *Window, text string, from_y int, from_x int, interval
|
|||
for i:=0; i < len(text); i++ {
|
||||
ch := string([]rune(text)[i])
|
||||
_, mx := scr.MaxYX()
|
||||
cy := i / mx + 2 + from_y
|
||||
cx := i % mx + 2
|
||||
cy := i / mx + from_y
|
||||
cx := i % mx + 1
|
||||
scr.MovePrint(cy, cx, ch)
|
||||
time.Sleep( time.Duration(1000 / len(text)) * time.Millisecond)
|
||||
scr.Refresh()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue