From 097a9f4988333b1d445ba70df006da6ef26bfaa9 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 16 Feb 2018 10:09:48 -0300 Subject: [PATCH] Document second parameter (seek position) of /cat command --- docs/help/in/cat.in | 6 +++++- 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 */ +/* SYNTAX: CAT [] */ static void cmd_cat(const char *data) { char *fname, *fposstr;