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

tcell custom tty on Windows will not work #580

Closed
matjam opened this issue Nov 23, 2022 · 2 comments
Closed

tcell custom tty on Windows will not work #580

matjam opened this issue Nov 23, 2022 · 2 comments

Comments

@matjam
Copy link

matjam commented Nov 23, 2022

in #541 it was noted that you need to call screen.Init() on a screen that you create from tcell.NewTerminfoScreenFromTtyTerminfo().

This however will not work because on Windows that function just returns ErrNoScreen: https://github.com/gdamore/tcell/blob/main/tscreen_stub.go#L25

Not sure the best solve here.

@delthas
Copy link
Contributor

delthas commented Dec 2, 2022

Indeed, support for Windows Pseudoconsole / ConPTY (using Windows Terminal) is currently not implemented.

FWIW I have started work on this here: delthas@28d16dd and it works OK, but there are a few issues here and there so I'm not opening a PR yet.

@gdamore
Copy link
Owner

gdamore commented Dec 30, 2022

The trivial fix for this doesn't solve everything, but it should enable you to supply a custom TTY now.

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

3 participants