Add logs buffer

This commit is contained in:
2026-05-04 22:46:21 +03:00
parent e4462f9674
commit 999f1953f9
11 changed files with 180 additions and 53 deletions
+9 -1
View File
@@ -38,7 +38,7 @@ func main() {
for i, file := range flag.Args() {
b, err := CreateFileBuffer(file, true)
if err != nil {
window.PrintMessage("Could not open file: " + file)
window.PrintMessage("Could not open file: "+file, TYPER_MESSAGE_ERROR)
continue
}
@@ -49,6 +49,14 @@ func main() {
}
}
// Create logs buffer
logsBuffer, err := CreateBuffer("Logs")
if err != nil {
log.Fatalf("Could not create logs buffer")
}
logsBuffer.filetype = "typer_logs"
logsBuffer.canEdit = false
for !window.closed {
window.Draw()
window.ProcessEvents()