mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 12:01:45 +00:00
bugfix: cursor positioning and printing
This commit is contained in:
parent
00886d2e07
commit
b462335db4
6
main.go
6
main.go
@ -10,7 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func output(client *resty.Client, url string, width, height int, arr [][]Cell) {
|
func output(client *resty.Client, url string, width, height int, arr [][]Cell) {
|
||||||
goterm.MoveCursor(0, 0)
|
goterm.MoveCursor(1, 2)
|
||||||
// Prepare instructions for matrix
|
// Prepare instructions for matrix
|
||||||
instructions := make([]interface{}, 0)
|
instructions := make([]interface{}, 0)
|
||||||
// Append all live cells as pixel instructions
|
// Append all live cells as pixel instructions
|
||||||
@ -43,10 +43,8 @@ func main() {
|
|||||||
|
|
||||||
// Load env server data
|
// Load env server data
|
||||||
url, width, height := loadMatrixData()
|
url, width, height := loadMatrixData()
|
||||||
log.Printf("At '%s': %d x %d\n", url, width, height)
|
goterm.Printf("At '%s': %d x %d\n", url, width, height)
|
||||||
|
|
||||||
// Initialize terminal UI
|
|
||||||
goterm.Clear()
|
|
||||||
// Initialize resty client
|
// Initialize resty client
|
||||||
client := resty.New()
|
client := resty.New()
|
||||||
// Initialize pixel color
|
// Initialize pixel color
|
||||||
|
Loading…
Reference in New Issue
Block a user