Replies: 3 comments
-
The library already supports pipe commands and/or redirects to a file. For piping commands you can do, for example:
Instead, for an example of taking input from a file |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. What I'm trying to do is
if I do cli> moretest test | more it would have the standard more behavior to the screen. Or cli> moretest test | grep foo would return lines with "foo" in it to the screen. |
Beta Was this translation helpful? Give feedback.
-
Well, that's a feature very hard to implement. Keep in mind that this library is not a replacement for a Linux shell, but a command prompt for your own application. However, for the first one, you should put the pagination code inside your handler. |
Beta Was this translation helpful? Give feedback.
-
I suppose this is a question/feature request. It would be super useful to be able to pipe commands or redirect to a file. Not sure how one would even go about that. Maybe overloading on ostream. Anyway, super useful library, thanks for the hard work!
Beta Was this translation helpful? Give feedback.
All reactions