Skip to content

Commit

Permalink
Merge pull request #222 from CodyGramlich/Monochrome-flag
Browse files Browse the repository at this point in the history
Added monochrome CLI flag
  • Loading branch information
tobimensch committed Sep 29, 2018
2 parents 99d8468 + 5c09d70 commit 40f02fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions interfacer/src/browsh/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions interfacer/src/browsh/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func setupTcell() {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
}
IsMonochromeMode = viper.GetBool("monochrome")
screen.EnableMouse()
screen.Clear()
}
Expand Down

0 comments on commit 40f02fc

Please sign in to comment.