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

How can I use the windows cmd as a terminal #538

Open
karelantonio opened this issue Mar 5, 2021 · 2 comments
Open

How can I use the windows cmd as a terminal #538

karelantonio opened this issue Mar 5, 2021 · 2 comments

Comments

@karelantonio
Copy link

..?

@karelantonio
Copy link
Author

Sorry. I didn't explain well. I want to use another terminal because I use too Termux in Android but when I use it there are some problems because Android doesn't support Java.awt or javax.swing so I use the unixTerminal. But there's another problem. When I use in Termux showsome words (like ^[[...) And when I type something writes over the windows, buttons, etc. I think the problem is related with something like cbreak in curses or maybe some terminals don't support curses at all (or just a part of it). Please tell me what can I do

@avl42
Copy link
Contributor

avl42 commented Apr 5, 2021

windows cmd just isn't a unixterminal. It doesn't behave like one.

There is some experimental code in lanterna to attempt to use windows cmd window nevertheless, but you'll have to experiment with it yourself, and see how you can get it compiled... you might need some third party lib (jna).

In your app then you have to use the DefaultTerminalFactory, rather than instanciating a UnixTerminal directly. The DefaultTerminalFactory will try to find out what Terminal class to use for each respective OS environment at runtime...

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

2 participants