Merge pull request #222 from CodyGramlich/Monochrome-flag

Added monochrome CLI flag
pull/226/head
Tobi 2018-09-29 16:22:40 -04:00 zatwierdzone przez GitHub
commit 40f02fc36b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -23,6 +23,7 @@ var (
_ = pflag.String("firefox.path", "firefox", "Path to Firefox executable")
_ = pflag.Bool("firefox.with-gui", false, "Don't use headless Firefox")
_ = pflag.Bool("firefox.use-existing", false, "Whether Browsh should launch Firefox or not")
_ = pflag.Bool("monochrome", false, "Start browsh in monochrome mode")
)
func getConfigNamespace() string {

Wyświetl plik

@ -24,6 +24,7 @@ func setupTcell() {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
}
IsMonochromeMode = viper.GetBool("monochrome")
screen.EnableMouse()
screen.Clear()
}