diff options
author | dequis <dx@dxzone.com.ar> | 2018-02-16 10:09:48 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2018-02-16 10:09:48 -0300 |
commit | 097a9f4988333b1d445ba70df006da6ef26bfaa9 (patch) | |
tree | c02c23dbfd1dc139b535e1dd8d591c4ddbe1dce6 | |
parent | ad4324d24210f30646575b8bcbae8b50d2149224 (diff) | |
download | irssi-097a9f4988333b1d445ba70df006da6ef26bfaa9.zip |
Document second parameter (seek position) of /cat command
-rw-r--r-- | docs/help/in/cat.in | 6 | ||||
-rw-r--r-- | src/fe-common/core/fe-core-commands.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/help/in/cat.in b/docs/help/in/cat.in index 3a3ed32b..9f9f242f 100644 --- a/docs/help/in/cat.in +++ b/docs/help/in/cat.in @@ -5,12 +5,16 @@ %9Parameters:%9 - The file to display. + The file to display and optionally a position to seek in the file, + in bytes. %9Description:%9 Displays the contents of the specified file into the active window. + The seek position parameter is used internally to display away logs, if + omitted the whole file is shown. + %9Examples:%9 /CAT /etc/network/interfaces diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c index fb98cc25..222543d5 100644 --- a/src/fe-common/core/fe-core-commands.c +++ b/src/fe-common/core/fe-core-commands.c @@ -114,7 +114,7 @@ static void cmd_version(char *data) } } -/* SYNTAX: CAT <file> */ +/* SYNTAX: CAT <file> [<seek position>] */ static void cmd_cat(const char *data) { char *fname, *fposstr; |