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

the serial terminal key is invalid or stuck #215

Open
shiroming opened this issue Nov 4, 2022 · 0 comments
Open

the serial terminal key is invalid or stuck #215

shiroming opened this issue Nov 4, 2022 · 0 comments

Comments

@shiroming
Copy link

When the tty is /dev/ttyS0, readline gets the term width as 0 (stty size output is 0 0), resulting in invalid tab and infinite loop of arrow keys

w return is 0

readline/utils_unix.go

Lines 39 to 45 in 7f93d88

func GetScreenWidth() int {
w := getWidth(syscall.Stdout)
if w < 0 {
w = getWidth(syscall.Stderr)
}
return w
}

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