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:
commit
575daf4af7
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user