-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Small example please of Raw console under Windows #519
Comments
A way to do this in JLine3 is to create widget and bid it to the key:
Of course you can implement the widget also in your Java program (I have not tested the code below!):
|
2 things are not working.
Maybe that is why getting exception when reading buffor at widget.
Project: Console. Readme.md with different Java versions and how to build/run |
My example above is for the real console the JVM is running in, you should create terminal as
Buffer 64bits size is it's initial size. Buffer size is dynamically increased when needed. |
Changed system to true. Problems: Goal:
Is it possible in jline3? Class in github https://github.com/Blackisher/Console/blob/master/src/main/java/com/Main.java import org.jline.keymap.KeyMap; import java.io.IOException; public class Main {
} class MyWidgets extends org.jline.builtins.Widgets {
} |
I think that you cannot run correctly the program from your IDE. When you launch it from your command prompt it should work.... Sure you get About the RAW mode I do not have idea, @gnodet can you comment? |
I was running it in windows console - as described in README.md and in IDE @mattirn I see you are using linux?
I guess: What I wanted to get: Is this possible based on jline3 library? |
On windows, you need to add jansi or jna to the classpath in order to have a working console. |
|
#519 : do not allow dumb terminal by default on windows, unless explicitely requested
|
Terminal in RAW mode... Flappy Bird game written in Java/JLine3, which is rendered in terminal: FlappyTerminal |
Close because of inactivity |
Having problem with examples and ConsoleReader. Is it even still possible in jline3? Maybe I should go to jline2?
as I see in jline2 but not 3.
jline2/src/main/java/jline/console/ConsoleReader.java
What I am trying to do:
The text was updated successfully, but these errors were encountered: