Closed knqyf263 closed 7 years ago
i'm not affiliated with the project, just a passer-by...
but, you'll need to supply more details.
what shell are you using? CMD? trying to run from cygwin?
In the past, most of my problems for "alignment" has been the shell didn't have the correct variables set. so, the application just had to make best guesses (120x80? 80x30?, etc). that may have been what happened here?
try making your console Fullscreen, and run it again via command line. most likely it is trying for something wider than your current console, and it is wrapping.
@eduncan911 Thanks for your advice!
I use cmd.exe
.
The behavior is below.
I used this sample code. https://github.com/jroimartin/gocui#example
After try making my console fullscreen, the result is the same:cry:
I remember someone mentioning this exact issue before, but I can't seem to find it. What version are you using?
I'm using the latest version of gocui
.
I did go get github.com/jroimartin/gocui
a while ago.
The latest commit is 612b0b2987ec1a6af46d7008cef1efd4b3898346
I cross-compiled on Mac. Is it affected?
$ go version
go version go1.7.5 darwin/amd64
$ GOOS=windows GOARCH=386 go build
Shouldn't be. Cross compiling in Go should be the same as compiling on the target platform.
On Thu, 18 May 2017, 05:27 Teppei Fukuda, notifications@github.com wrote:
I'm using the latest version of gocui. I did go get github.com/jroimartin/gocui a while ago.
The latest commit is 612b0b2987ec1a6af46d7008cef1efd4b3898346
I cross-compiled on Mac. Is it affected?
$ go version go version go1.7.5 darwin/amd64 $ GOOS=windows GOARCH=386 go build
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jroimartin/gocui/issues/105#issuecomment-302297243, or mute the thread https://github.com/notifications/unsubscribe-auth/AIhznxT3fYJfFdCXBLTGWVRv1dl4utehks5r68jCgaJpZM4MpADR .
Can you try setting g.ASCII = True
?
https://github.com/jroimartin/gocui/blob/master/gui.go#L66-L68
Related: #93, #91
I'm closing the issue for now. I think it duplicates the issues linked in my last comment. It that's not the case, feel free to reopen it :)
I built this sample code and ran on Windows 7. https://github.com/jroimartin/gocui#example
The layout is skewed. How can I avoid this?
Thank you for the awesome library!