input Getenvs to FlagXYZ

This commit is contained in:
bel
2023-03-25 10:58:13 -06:00
parent ae1e32391c
commit a1a12b1873
9 changed files with 45 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ func (kb Keyboard) Read() []byte {
if err != nil && err != io.EOF {
panic(err)
}
if os.Getenv("DEBUG") == "true" {
if FlagDebug {
log.Printf("raw.Keyboard.Read() %s", b[:n])
}
return b[:n]