Comments (3)
I think this would be a nice feature.
I'm currently working on another project, which will keep me busy for several months.
Therefore, I put the label "up-for-grabs" on this issue, to indicate that this feature has been specifically chosen to be implemented by contributors.
Some guidelines for contributors:
-
Implementing this feature is not a trivial task, because Text-IO has not been designed to be thread-safe.
-
In order to avoid intermingling the messages printed by different threads, TextTerminal's print methods should not be allowed to run in parallel.
-
When a print method runs in parallel with a read method, an ideal implementation will allow specifying the desired behavior:
- (as requested by @asm0dey) Print the message and redraw the question.
Take care to restore the properties that were in use by the initial call of the read method.
Also take care of the partial input available at the moment when the read method has been interrupted. - Postpone the print operation until after the end of the read operation.
(It is OK to send a PR implementing only one of these two approaches, leaving the other one open for a future contribution.)
- (as requested by @asm0dey) Print the message and redraw the question.
In order to prevent that two people work on the same thing, leave a comment here to claim this issue before starting to work on it.
from text-io.
Any plans on introducing it? This library is pretty useless without this feature.
from text-io.
Sorry, currently I have no time to implement this feature and no one stepped in to do this.
Would you be interested perhaps in sending a pull request for implementing this feature?
from text-io.
Related Issues (20)
- How to restart gracefully HOT 4
- Error Message Provider for EnumInputReader with Numbered Values HOT 2
- Disable Event Expansion for Strings Containing Exclamation Marks '!' HOT 1
- Timed Wait for Input HOT 1
- Multi-line paste use case HOT 1
- Jline 3 support HOT 2
- Specific Maven example for WebTextTerminal HOT 3
- Cookies on WebTextTerminal HOT 5
- How to use MockTextTerminal HOT 7
- Allow cumulative possible values and properties configurators
- MockTextTerminal strips out new lines
- How to print also to log? HOT 4
- Change error messages HOT 2
- Input masking doesn't work with SystemTextTerminal HOT 2
- 👀
- Print empty line/whitespace
- java.lang.UnsatisfiedLinkError: /root/wag_inst/tools/jre-linux/lib/libawt_xawt.so: libXrender.so.1: cannot open shared object file: No such file or directory
- How minimize console to system tray?
- Java 21 breaks the terminal font HOT 1
- How to change the prompt for a EnumInputReader?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from text-io.