forked from sloum/bombadillo
Removed dead code and empty file
This commit is contained in:
parent
f5c5dcd736
commit
3a33320ec5
13
cui/cui.go
13
cui/cui.go
|
@ -26,19 +26,6 @@ var Shapes = map[string]string{
|
||||||
"abr": "▟",
|
"abr": "▟",
|
||||||
}
|
}
|
||||||
|
|
||||||
func drawShape(shape string) {
|
|
||||||
if val, ok := Shapes[shape]; ok {
|
|
||||||
fmt.Printf("%s", val)
|
|
||||||
} else {
|
|
||||||
fmt.Print("x")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func moveThenDrawShape(r, c int, s string) {
|
|
||||||
MoveCursorTo(r, c)
|
|
||||||
drawShape(s)
|
|
||||||
}
|
|
||||||
|
|
||||||
func MoveCursorTo(row, col int) {
|
func MoveCursorTo(row, col int) {
|
||||||
fmt.Printf("\033[%d;%dH", row, col)
|
fmt.Printf("\033[%d;%dH", row, col)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
package cui
|
|
Loading…
Reference in New Issue