Repos / gorts / 12e85af881
commit 12e85af881b784bec3f9511da74b89ff7b75d660
Author: Nhân <hi@imnhan.com>
Date: Mon Jun 19 21:11:47 2023 +0700
more skimmable stderr prefix
diff --git a/main.go b/main.go
index c7909bf..0ff2862 100644
--- a/main.go
+++ b/main.go
@@ -73,7 +73,7 @@ func startGUI() {
errscanner := bufio.NewScanner(stderr)
for errscanner.Scan() {
errtext := errscanner.Text()
- fmt.Printf("~~> %s\n", errtext)
+ fmt.Printf("XXX %s\n", errtext)
}
}()
@@ -91,18 +91,18 @@ func startGUI() {
next := func() string {
scanner.Scan()
v := scanner.Text()
- println("==>", v)
+ println("-->", v)
return v
}
respond := func(s string) {
- println("<==", s)
+ println("<--", s)
io.WriteString(stdin, s+"\n")
}
for scanner.Scan() {
req := scanner.Text()
- println("==> " + req)
+ println("--> " + req)
switch req {
case "readstate":
// TODO: there must be a more... civilized way.