diff options
author | ryenus <ryenus@gmail.com> | 2017-08-03 17:43:28 +0800 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-24 19:22:25 +0200 |
commit | f4bb50294a31c0d46dbcd742c4002f4fbb20d2a8 (patch) | |
tree | 4ea66a688d2967e80888c5c73edb801668b2de60 /CommandScreen.h | |
parent | 52338171220af1ff009ea30114a290c80847b2dd (diff) |
show selected command wrapped in a separate window
For a process with a very long command, especially with many long
command line arguments, inspecting the command and its arguments could
become inconvenient.
Meanwhile htop supports the concept of "screen", or window, which is
extended here to create a dedicated "CommandScreen", making it possible
to display the command of the selected process in a separate window
meanwhile being wrapped into multiple lines.
Another benefit of using a command screen is, the user can navigate
through the wrapped lines of the command and perform actions like
searching and filtering.
Diffstat (limited to 'CommandScreen.h')
-rw-r--r-- | CommandScreen.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CommandScreen.h b/CommandScreen.h new file mode 100644 index 00000000..a1604a3e --- /dev/null +++ b/CommandScreen.h @@ -0,0 +1,16 @@ +#ifndef HEADER_CommandScreen +#define HEADER_CommandScreen + +#include "InfoScreen.h" + +typedef struct CommandScreen_ { + InfoScreen super; +} CommandScreen; + +extern InfoScreenClass CommandScreen_class; + +CommandScreen* CommandScreen_new(Process* process); + +void CommandScreen_delete(Object* this); + +#endif |