Skip to content

Commit

Permalink
Simplify tmux format
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Grazier committed Mar 3, 2015
1 parent e552915 commit 6a47c32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ var AvailableLines = []string{
}

var ColorForTmux = map[string]string{
"GOOD SERVICE": "#[fg=green]",
"PLANNED WORK": "#[fg=colour3]",
"SERVICE CHANGE": "#[fg=colour214]",
"DELAYS": "#[fg=red]",
"GOOD SERVICE": "#[fg=green]",
"PLANNED WORK": "#[fg=colour3]",
"SERVICE CHANGE": "#[fg=colour214]",
"DELAYS": "#[fg=red]",
}

var tmux bool = false
Expand All @@ -68,7 +68,7 @@ func queryForStatusOf(line string) {
for _, l := range service.Subway.Line {
if l.Name == line {
if tmux {
fmt.Printf("%s%s", ColorForTmux[l.Status], l.Name)
fmt.Printf("%s", ColorForTmux[l.Status])
} else {
fmt.Printf("%s %s\n", l.Name, l.Status)
}
Expand Down

0 comments on commit 6a47c32

Please sign in to comment.