-
Notifications
You must be signed in to change notification settings - Fork 10
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
keyboard behaves poorly after ctrl-c #53
Comments
This is about running Octave in the terminal without I've seen the same thing since I started using Flatpak, and I don't know the cause. I did just notice that
fixes this. So it's not a general Flatpak problem. |
I think so: I was doing And yes that suggestion works around it, thank you. I've never been totally happy with Octave's Ctrl-C behaviour (every now and then I get lockups or races etc, usually involving tightloops with plotting and banging repeatedly on ctrl-c: I think its generally better lately). Anyway, was never as regular as this... Of course, IIRC, Matlab's Ctrl-C isn't optimal either (can't Ctrl-C out of compiled routines for example). |
This reminds me somewhat of the old says where ctrl-S would f^*kup my terminal and I had to remember some terminal reset command to fix it...? Possibly related? |
Or maybe it was binary files, like https://unix.stackexchange.com/questions/79684/fix-terminal-after-displaying-a-binary-file |
Nope, |
A few small findings to report, but probably nothing that points to an answer yet. When Flatpak runs
After Ctrl+C results in a
Several terminal device options have been unset: |
For comparison, if I run bash instead with
Notice the lack of If I instead run
This time, all processes are terminal foreground processes. So the question is why are |
This is still an issue for me. @mtmiller's workaround seems to fix it, though. I made it permanent by putting this in my bashrc: alias octave='flatpak run --command=bash org.octave.Octave --norc -i -c '\''exec octave "$@"'\'' -' |
After I press control-C, keyboard input is... well messed up. Like some keys generate ascii junk, non-deterministically. Especially the "r" key and the arrow keys.
Also, when I press Ctrl-C, I see my BASH prompt, but Octave is still running. Not really clear when my commands were going to bash and when to Octave.
Is bwrap doing some filtering on my keycodes? Feels like I've Ctrl-C'd something other than Octave...
The text was updated successfully, but these errors were encountered: