package ui import ( "os" "testing" ) // TestMain keeps the tests from asking the real terminal about graphics // support and its colors (the probe writes to and reads from /dev/tty). func TestMain(m *testing.M) { terminalAnswers = func() terminalInfo { return terminalInfo{} } os.Exit(m.Run()) }