Initial Commit

This commit is contained in:
2025-06-03 16:59:39 +03:00
commit 6b5e6e8996
12 changed files with 602 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package main
import "github.com/gdamore/tcell"
func drawText(s tcell.Screen, x1, y1, x2, y2 int, style tcell.Style, text string) {
row := y1
col := x1
for _, r := range []rune(text) {
s.SetContent(col, row, r, nil, style)
col++
if col >= x2 {
row++
col = x1
}
if row > y2 {
break
}
}
}