summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Robinson <casey.robinson@distilnetworks.com>2014-12-13 14:31:50 -0500
committerCasey Robinson <casey.robinson@distilnetworks.com>2014-12-13 14:31:50 -0500
commit33dee9fda74318e35021488681281d768478bd29 (patch)
tree95bd7b2e63b7849cd6505d361785d05856990579
parent4805cb2bc48c59f6e2b8231f5f28887451fb6919 (diff)
downloadonetime-33dee9fda74318e35021488681281d768478bd29.tar.gz
onetime-33dee9fda74318e35021488681281d768478bd29.tar.bz2
onetime-33dee9fda74318e35021488681281d768478bd29.zip
force terminal to redraw stale ')'
tmux uses persistence to minimize wasted cpu cycles redrawing unchanging data. This is a problem when your data shrinks. Therefore I ensure that there is whitespace at the end to cover it up.
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 7dbc37c..9fb5a8e 100644
--- a/main.go
+++ b/main.go
@@ -38,7 +38,7 @@ var format string
func main() {
ps := parseStdin()
- format = "%-" + strconv.Itoa(nameLength) + "s %s (%ds)\n"
+ format = "%-" + strconv.Itoa(nameLength) + "s %s (%ds) \n"
sigChan := make(chan os.Signal, 1)
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM)