Skip to content

running node at background turn off the stty echo #57849

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

Closed
cchangwen opened this issue Apr 12, 2025 · 1 comment
Closed

running node at background turn off the stty echo #57849

cchangwen opened this issue Apr 12, 2025 · 1 comment

Comments

@cchangwen
Copy link

cchangwen commented Apr 12, 2025

Version

v22.14.0

Platform

Linux IntelCoreI9 4.4.0-19041-Microsoft #4355-Microsoft Thu Apr 12 17:37:00 PST 2024 x86_64 x86_64 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

A shell script run on WSL Ubuntu:

#!/bin/bash

sleep 1 # to reproducing bugs
stty -a # show stty settings

# run any js script at background
node -e 'await new Promise(resolve => setTimeout(resolve, 10000))' &

stty -a # show stty settings again
# may changed from `echo` to `-echo`

# stty echo # turn on echo

How often does it reproduce? Is there a required condition?

It's a big probability, causing shell terminal to lose display.

What is the expected behavior? Why is that the expected behavior?

nothing

What do you see instead?

shell terminal losing it's display back.

Additional information

stty echo can fix it. But isn't this a bug?

@cchangwen
Copy link
Author

#21020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant