Comments (4)
Thanks for creating this issue. This is a result of the design of reple, which currently prints new lines of output. This means that if new output appears without a newline, there is incorrect output.
from reple.
There's a feature already in repl, line epilogues, that could potentially fix this by adding a newline at the end of each line. There's a question about whether this is the correct thing to do, though, since ideally you would print without a newline, since there is no newline.
There's an example of how to use line epilogues here in the MPI config.
from reple.
Also, someone emailed me with a potential fix to nondeterministic output, which is related, and could potentially provide a full fix here. This would involve printing out tags before and after each command in order to help determine which command produced which specific bits of output. This way, even if the number of lines of output produced by previously entered commands changes, we can still only print the output produced by the most recently entered command.
This could introduce considerable complexity, though, so if someone wants to tackle this, please discuss here so we can agree on an approach before you write too much code. That way we can keep the code complexity as low as possible.
from reple.
Related: Printing to stderr results in the last line of stdout being repeated, instead of the line in stderr being printed (example below)
(My last print was a printf("%s\n", argv[0]);
)
from reple.
Related Issues (5)
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 reple.