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

Connect JLine to TerminalFx #736

Open
dbschema-pro opened this issue Nov 2, 2021 · 0 comments
Open

Connect JLine to TerminalFx #736

dbschema-pro opened this issue Nov 2, 2021 · 0 comments

Comments

@dbschema-pro
Copy link

dbschema-pro commented Nov 2, 2021

I am looking to integrate JLine with TerminalFx.
TerminalFX is a terminal running in JavaFX.

I successfully implemented Input/Output Streams between Jline and TerminalFX, somehow the
lineReader.readLine() never reads a line.

I tried with a dumb terminal, as well as the others, but still no results.
I did debug over the streams, and typing 'a' shows the codes 97, 10 are read by the InputStream.

Terminal term = TerminalBuilder.builder().dumb( true ).streams(inputStream, outputStream).build();
LineReader lineReader = LineReaderBuilder.builder().terminal( terminal ).build();

new Thread(() -> while( line= lineReader.readLine(...) != null){...} ).start();

Do you know what could be wrong?

@dbschema-pro dbschema-pro changed the title Connect JLine to TerminalFx using DumbTerminal Connect JLine to TerminalFx Nov 10, 2021
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