aboutsummaryrefslogtreecommitdiff
path: root/utils/helper/incremental_print.go
diff options
context:
space:
mode:
Diffstat (limited to 'utils/helper/incremental_print.go')
-rw-r--r--utils/helper/incremental_print.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/utils/helper/incremental_print.go b/utils/helper/incremental_print.go
deleted file mode 100644
index c94f904..0000000
--- a/utils/helper/incremental_print.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package helper
-
-import (
- "time"
-
- . "github.com/gbin/goncurses"
-)
-
-func IncrementalPrint(scr *Window, text string, from_y int, from_x int, interval_millis int) {
- for i:=0; i < len(text); i++ {
- ch := string([]rune(text)[i])
- _, mx := scr.MaxYX()
- 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()
- }
-}