PerBothner / DomTerm

DOM/JavaScript-based terminal-emulator/console

Home Page:https://domterm.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DomTerm freezes when using sudo

mcarans opened this issue · comments

commented

If I start DomTerm, then do sudo xed, type my password, then press CTRL-Z, then DomTerm freezes - I am not usually able to type my next command eg. bg.

This time it does look like a flow control problem, with the following in the log:

 [2021/07/28 14:24:35:4501] I: [2021/07/28 14:24:35:4501] I: session 1 paused (flow control) 268435454 bytes ahead sent:546 confirmed:548
commented

I also get freezing without sudo if I run some docker build commands but it's harder to replicate. Let's see if any fix that you come up for the sudo problem will also fix the docker building.

This should fix the problem:

ctrl-pause-patch.txt

Doing fg leads to some awkward echoing.

commented

Yes that fixed it. Thanks for investigating!

commented

Closing as seems to be working fine