cm icon indicating copy to clipboard operation
cm copied to clipboard

Piping command output into cm

Open adasium opened this issue 5 years ago • 1 comments

Currently there is no support for piping into cm (e.g. python main.py | cm). There are two reasons for it: one of them being the lack of possibility to repeat the command from inside of cm. The other reason was a technical issue but I don't remember the details. Was it something tricky at the time so you decided to skip that for the time being or it's something difficult to work around and keep maintaining?

adasium avatar Dec 21 '20 10:12 adasium

The other reason was a technical issue but I don't remember the details.

Yeah, I think ncurses receives the input from stdin. And if you use stdin as the source of data ncurses can't work properly and you have to add hacks that read directly from /dev/tty* which is not crossplatform. I'll look into that again a bit later.

Thank you for filing this issue!

rexim avatar Dec 24 '20 17:12 rexim