rainbowstream icon indicating copy to clipboard operation
rainbowstream copied to clipboard

Piped text causes rainbowstream to repeat its prompt forever

Open ShadowKyogre opened this issue 8 years ago • 5 comments

Steps to Reproduce

  1. Run the following: echo h | rainbowstream

Expected Result

Have the prompt appear after it's done interpreting commands from the pipe.

OR

Bail after it's done receiving things over the pipe.

Actual Result

rainbowstream understands the input, but the prompt keeps repeating forever.

See https://asciinema.org/a/3k4rj1xg0aeonycyq3ju2tp69 for more information.

Also, while the prompt is garbled, that's an entirely different issue that already has a PR to fix it.

ShadowKyogre avatar Aug 16 '16 16:08 ShadowKyogre

Thanks - will look further into it

orakaro avatar Aug 17 '16 13:08 orakaro

Just tried the same thing and the prompt still repeats forever. Would be nice to be able to do this. Sample use case would be echo t test | rainbowstream to send a quick tweet.

LSB Version:	core-11.0.1ubuntu1-noarch:printing-11.0.1ubuntu1-noarch:security-11.0.1ubuntu1-noarch
Distributor ID:	Ubuntu
Description:	Ubuntu 19.10
Release:	19.10
Codename:	eoan

Perl

perl 5, version 28, subversion 1 (v5.28.1) built for x86_64-linux-gnu-thread-multi

easterncoder avatar Mar 05 '20 17:03 easterncoder

After watching the video link and seeing what is supposed to happen, mine does the same thing. Was being a bit slow on the uptake.

johnpiers avatar Mar 05 '20 19:03 johnpiers

BUMP

has anyone figured this out?

libmarleu avatar May 10 '21 14:05 libmarleu

You may need to pass the carriage returns (to terminate the tweet) and exit() to close rainbowstream again:

echo 't hello world\n\nexit()' | rainbowstream

j6k4m8 avatar Feb 27 '22 21:02 j6k4m8