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 |
0 replies
|
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. |
0 replies
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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!
All reactions