You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a full-screen ncurses app (neovim) crashed on a failed assertion, something in the internal term size state (even though I did not physically resize the terminal) broke:
As you can see, the columns and rows info is, however, correct.
When an ncurses app breaks the terminal state on crash (see #4873) I could typically fix all breakage by simply running and cleanly exiting either fzf or neovim, but that is not the case here.
I've actually confirmed that this readily reproduces for me via the same steps as #4873 (e.g. in neovim, just execute : kill -SIGABRT (pidof nvim)), but I don't want to group the bugs together as here we have additional breakage in the form of a now-confirmed regression that's quite separate from the clobbered input issues described in that issue.
stty -opost deactivates post-processing output. For example, normally sending a (U+00A0) character to the terminal will automatically insert a (U+000D) character, to make the cursor go to the beginning of the next line.
Activity
mqudsi commentedon Jun 19, 2020
I've actually confirmed that this readily reproduces for me via the same steps as #4873 (e.g. in neovim, just execute
: kill -SIGABRT (pidof nvim)), but I don't want to group the bugs together as here we have additional breakage in the form of a now-confirmed regression that's quite separate from the clobbered input issues described in that issue.mqudsi commentedon Jun 19, 2020
Typical
sttyoutput:sttyoutput after reproducing this issue:#4873 does not exhibit a similar change in basic
sttyoutput.faho commentedon Jun 19, 2020
Have you tried with fish post d5a239e?
mqudsi commentedon Jun 19, 2020
Yeah, I get the same regression when running
3.1.2-886-g56a9e698d.I actually thought I was originally running a build that was after @ridiculousfish's termsize changes but it turns out I was on 1af1e7b.
faho commentedon Jun 19, 2020
Okay, I can reproduce this:
nvim(no customization)kill -ABRTthe nvim processstty -ashows staircase outputstty opostfixes itSo this is down to nvim enabling the "opost" terminal setting, which the stty man page describes as:
I have no idea what that is supposed to mean, but it sounds awful.
faho commentedon Jun 19, 2020
This would be down to #2315, which allowed changes to the terminal modes to stick. Sounds like we need to disable more.
mqudsi commentedon Jun 19, 2020
opost is basically the difference between DOS/UNIX file formats. See https://unix.stackexchange.com/a/402878/30919 :
faho commentedon Jun 19, 2020
Blergh.
mqudsi commentedon Jun 19, 2020
I think you meant disabling, right?
faho commentedon Jun 19, 2020
Indeed.
faho commentedon Jun 19, 2020
Let's just force the big ticket items - stuff that entirely breaks all output, that removes showing of input,...
These are good for a program to turn off for its own behavior, but not useful globally.