orakaro / rainbowstream

A smart and nice Twitter client on terminal written in Python.
https://github.com/orakaro/rainbowstream
MIT License
3.54k stars 260 forks source link

Piped text causes rainbowstream to repeat its prompt forever #186

Open ShadowKyogre opened 8 years ago

ShadowKyogre commented 8 years ago

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.

orakaro commented 8 years ago

Thanks - will look further into it

easterncoder commented 4 years ago

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
johnpiers commented 4 years ago

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.

libmarleu commented 3 years ago

BUMP

has anyone figured this out?

j6k4m8 commented 2 years ago

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