mirror of
https://github.com/EnumeratedDev/typer.git
synced 2026-09-16 05:36:10 +00:00
Add logs buffer
This commit is contained in:
+9
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user