Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential extension to the behavior of the cmdline/COMMAND column #20

Open
mforthewin opened this issue Jan 12, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@mforthewin
Copy link
Contributor

One idea not addressed in #17 was that the truncation of the cmdline contents in the COMMAND column of zps's output maybe should be adapted to allow longer output depending on the number of available terminal columns. An example of this would be ps, which attempts to display the contents up to the line limit of the interactive terminal, unless stdout is piped to a different program's stdin – like grep, for example –, in which case the whole cmdline is displayed.

Introducing this functionality would still have one issue, however: Users looking for a specific substring in the interactive output of zps would not find every match that grep-ing would show, due to differences in the maximum line lengths and occurring truncation.
Thus, it might actually be desirable to actually limit the lengths in any case, so users are required to check the contents through alternative sources/programs.

@orhun orhun added the enhancement New feature or request label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants