Skip to content
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

Node Repl Not Working on Serial Console #875

Closed
copy opened this issue Jun 6, 2023 Discussed in #874 · 3 comments
Closed

Node Repl Not Working on Serial Console #875

copy opened this issue Jun 6, 2023 Discussed in #874 · 3 comments
Labels

Comments

@copy
Copy link
Owner

copy commented Jun 6, 2023

Discussed in #874

Originally posted by cemalgnlts June 6, 2023
Hi,

I am trying to start Nodejs in repl mode. I try it first in GUI (/dev/console) and it works successfully.
I then try to run it in the console (/dev/ttyS0) and it throws a strange error.

Screenshot 2023-06-06 16 43 52

The ISO file can be obtained from here: linux.iso

@copy copy added the bug label Jun 6, 2023
@cemalgnlts
Copy link

I noticed that when I redirect Node's output to a file, I don't get an error:

Screenshot 2023-06-06 19 49 53

Using it this way, it takes the inputs from ttyS0 and appends the outputs to a file. I think the problem is caused by stdin or stdout.

@cemalgnlts
Copy link

I found the solution, the problem is that the ttyS0 terminal has no dimensions.

root$ stty size
stty: standard input

After typing the dimensions it now works fine:

root$ stty cols 80 rows 25
root$ stty size
25 80

Thanks.

@copy
Copy link
Owner Author

copy commented Jun 9, 2023

Thanks, closing.

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

No branches or pull requests

2 participants