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

Strange behavior on windows #1

Open
tjarratt opened this issue Jan 25, 2014 · 5 comments
Open

Strange behavior on windows #1

tjarratt opened this issue Jan 25, 2014 · 5 comments

Comments

@tjarratt
Copy link

I was using ts on windows and everything worked fine in cmd.exe. However, when I ran my simple app in powershell, I noticed some strange behavior; it appears that powershell incorrectly reports its height as the width.

Example:

package "main"

import (
  "github.com/olekukonko/ts"
)

func main() {
  size, _ := ts.GetSize()
  println(size.Col())
}

If you run this over and over, the number it prints out will keep increasing as the number of rows in the output increases. Have you seen this behavior before? I searched around but couldn't find anyone with a similar problem.

@olekukonko
Copy link
Owner

Have never used or tested it on powershell before ... I would investigate this behavior an get back to you.

@DataWraith
Copy link

Any update on this? I seem to be getting this behavior both in powershell and cmd.exe. I'm using pb, and the progress bars get longer and longer with every invocation.

@tjarratt
Copy link
Author

@DataWraith that was the exact same behavior that I saw, but I recall only seeing it in powershell. If it also occurs in cmd.exe then it should be easier to fix.

@prasannavl
Copy link
Contributor

Just sent in the pull request #2

This should fix it.

@tjarratt
Copy link
Author

This is really exciting. Can't wait to try it out and see if it fixes it.

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

No branches or pull requests

4 participants