Terminal.Gui: Linux terminal hangs after quit the GUI on Net5.0
Run UICatalog in WSL and quit. Try to type and it’s hang and you have to close WSL. Do the same with the Example and you can type normally. May be it’s related with Shutdown already related before.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 48
Commits related to this issue
- Fixes #931. Unix terminal hangs after exit. — committed to BDisp/Terminal.Gui by BDisp 4 years ago
- Fixes #931. Fixed the limit 25 lines issue. — committed to BDisp/Terminal.Gui by BDisp 3 years ago
This is great sluthing folks!
This stuff is black-art level stuff. The more documentation on why these changes work, the better.
Ok thanks. I’ll send a PR with that lines commented.
Leaving open until we verify.
I finally fixed it, I hope 😃 #931
“this week” became “next week” 😃
I don’t have much success so far, the mouse situation seems to be putting ncurses in a weird state - if I click with the left mouse button, then mouse movement starts reporting left mouse clicks, if I use the mouse wheel, then mouse movement starts reporting mouse wheel events, but much faster than before.
I tried to regenerate the
constants.csfile for ncurses with the original code from mono-ncurses, the differences mostly weren’t interesting except for maybeButton4codes (they are different) andAllEvents- it generated0xfffffffbut there’s0x7ffffffin code. I changed it, but I didn’t notice any difference in functionality.On the topic of interesting observations - the ncurses library gets loaded dynamically twice. I’m not sure if this causes any side effects yet, this might be the next thing I verify.
Long story short I’m worried that the native binding isn’t completely correct, but I haven’t found what exactly is wrong (yet).
I’ll try to take a look sometime this week, we’ll see how that goes 😃
Weird thing is,
ocgvworks fine everywhere!Ahhh…
If I start it from bash it works fine (and exits fine). but if I run it from pwsh most keystrokes don’t work (but it exits fine).