summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/help/in/cat.in6
-rw-r--r--src/fe-common/core/fe-core-commands.c2
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;