--
You received this message because you are subscribed to the Google Groups "jline-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jline-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/e33f73ae-2d72-4e64-890d-d589ec586b34n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/259a2510-a640-479c-9d23-a62f65302cacn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "jline-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jline-users/wBBb9zky3gQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jline-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/CAEQV%2BEGYj3vxVdU9o4GLHJvMOZqEcjeNiZx-Yejcdy%3DOTRq2jA%40mail.gmail.com.
What are the "expected" values? It seems they always change, like a file descriptor.
Anyway, what I'm trying to accomplish is a single line text editor that handles keyboard input to print Unicode emojis. I just need to enter raw mode, read from the keyboard, overwrite what's currently on the last line and finally return to line mode and exit.Can you point me to a similar program in your sources and tell me how it's expected to be run, if any?
Actually I cannot find a method to switch back from raw to line mode.
Attributes attributes = terminal.enterRawMode();
try {
// do in raw mode
} finally {
terminal.setAttributes(attributes);
}
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/CAKg%3D9UXJo2MytZ4evjZp6N2TuDLk8qovu0xfS4JDAsE1M1mODQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/CAEQV%2BEEeOP7RYuDMOD4ryTbMZxwBd%2B5pMT%3D1UCojL-L-rpTdZg%40mail.gmail.com.
Thanks a lot! What if I contribute such an application to the demos of jline3? It would be easier for me to get your support and it could benefit other users. Maybe I can fork a "demo/emoji-line-editor" branch form master and work there.
The application is simply a text editor that replaces ":-)" with "🙂" as the user types.BTW, what's the API for setting the cursor position and making it a blinking block?
To view this discussion on the web visit https://groups.google.com/d/msgid/jline-users/CAKg%3D9UWrm-fakQDL%2Bz-Co6T4zhM3MHJGwptDuiKh48GzroGs0A%40mail.gmail.com.