Comments (3)
If I understand you correctly, you're looking for a method to take input, run an async task, and then push the result to the terminal separately? Could Async output be what you're looking for?
from react-console-emulator.
Yes, but i don't want to define a command for it in commands prop, i want to take whole raw input and send it over the network.
from react-console-emulator.
Ah, so you're looking for something akin to what was suggested in #415, and just pass all of it through. Unfortunately, I have in the past declined to add this feature for a multitude of reasons, not least of which being the ones outlined in #415 (comment). That feature is still unviable for me to dedicate lots of time and effort to (The former of which I don't have a whole lot) when actual quality-of-life improvements are still on the docket.
I might implement something like this one day, but for now, I can't promise anything. If you absolutely need to pass the input over the network sight unseen, then your best option is probably to look for a terminal library with a lesser focus on a ready-made command API.
from react-console-emulator.
Related Issues (20)
- Make a maxOutput prop? HOT 1
- Live demo leads to a 404 page HOT 5
- Duplicate welcomeMessage HOT 2
- Add option to render spaces for stringified objects
- Ability to mimic a read-only state HOT 2
- Prompt/input styling is only applied to the latest prompt/input HOT 2
- Support for confirmation lines? HOT 2
- Possibility of catch all command? HOT 2
- Is there a way to display the text information that has been passed on? HOT 2
- Dual Input & Output terminals HOT 4
- "ReactHotLoader" occurrences in published package HOT 6
- Feature request: Command completion HOT 2
- [object Object] when dangerMode={true} HOT 8
- pushToStdout function changes the state inplace
- Is it possible to simulate typing? HOT 1
- Query regarding support for react native. HOT 1
- Wrap input instead instead of horizontal scrolling HOT 1
- Is it possible to enter text in console manually from server without typing a command? HOT 1
- dangerMode echos the custom label as [Object, object]
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 react-console-emulator.