Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a width limiter #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephensearles
Copy link

With long statuses, this was wrapping to the next line and causing the terminal to go to the next line and add a bunch of whitespace to my output. This change lets me set a max width, which in my program, I'm getting with https://godoc.org/golang.org/x/crypto/ssh/terminal.

@@ -33,6 +36,12 @@ func NewStatusBar(format *template.Template) *StatusBar {
}
}

func (bar *StatusBar) SetWidth(w int) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add documentation for this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants