1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #852 from dequis/document-cat-seek

Document second parameter (seek position) of /cat command
This commit is contained in:
ailin-nemui 2018-03-10 13:11:39 +01:00 committed by GitHub
commit 575daf4af7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -5,12 +5,16 @@
%9Parameters:%9 %9Parameters:%9
The file to display. The file to display and optionally a position to seek in the file,
in bytes.
%9Description:%9 %9Description:%9
Displays the contents of the specified file into the active window. 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 %9Examples:%9
/CAT /etc/network/interfaces /CAT /etc/network/interfaces

View File

@ -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) static void cmd_cat(const char *data)
{ {
char *fname, *fposstr; char *fname, *fposstr;