termbox-go | Pure Go termbox implementation
kandi X-RAY | termbox-go Summary
kandi X-RAY | termbox-go Summary
Pure Go termbox implementation
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of termbox-go
termbox-go Key Features
termbox-go Examples and Code Snippets
Community Discussions
Trending Discussions on termbox-go
QUESTION
I want to create a Go app with a console UI using the termui library (which is built on top of the termbox-go library). I can build the app and run it from the command line, but it will not start inside the GoLand IDE (2018.1.3) on Windows 10.
It fails during the termbox-go init when calling syscall.Syscall
with SetConsoleScreenBufferSize
parameter. The size for the screen buffer is 80x25. Error message is just "The parameter is incorrect."
How can I debug a termbox-go app in the GoLand or other IDE?
...ANSWER
Answered 2018-May-21 at 17:30I think the way to solve this is to build your executable with Go 1.10 or newer, compile it with the following flags: -gcflags="all=-N -l"
(these are very important and will allow the debugger to work a lot better, and then use the Run | Attach to Local Process...
option from GoLand and attach to the local process.
I'll see if I can replicate the bug and update this accordingly.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install termbox-go
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page