aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-07-19 14:28:20 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-07-19 14:28:20 +0200
commit415ef16ae3b6b32652135a219b12a074dff265d9 (patch)
tree53a3e63b1b55e8e9c6003a39a937e00bf987bec1
parent600e8d09f24e4f0f0876d0dbe23d9d1f3a9ec5e9 (diff)
downloadvideoteco-fork-415ef16ae3b6b32652135a219b12a074dff265d9.tar.gz
extensive EC command documentation (doxygen)
-rw-r--r--teccmd.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/teccmd.c b/teccmd.c
index 2c2db97..e6618db 100644
--- a/teccmd.c
+++ b/teccmd.c
@@ -1706,8 +1706,28 @@ register int length;
/**
* \brief Issue a command to the operating system
*
- * This routine is called in response to the EC command which allows the
+ * This routine is called in response to the \c EC command which allows the
* user to execute operating system commands from within the editor.
+ * Buffer content can either be piped into the process and replaced with its
+ * output (filtering) or the command's output can be inserted at the current
+ * buffer pointer position.
+ *
+ * \param uct Command Token
+ * \param arg_count Number of arguments passed to \c EC. 0 results in
+ * unidirectional piping of the command's output into
+ * the edit buffer (at \e DOT). 1 or 2 indicates that
+ * \a arg1 and \a arg2 contain a buffer range that should
+ * be filtered through the command (single-arguments to
+ * \c EC indicating a relative buffer range in lines are
+ * already translated).
+ * \param arg1 Start of buffer range. It is ensured to be less than
+ * \a arg2.
+ * \param arg2 End of buffer range
+ * \param cp Command string that will be executed by \c /bin/sh
+ *
+ * \return Status Code
+ * \retval SUCCESS Command succeeded
+ * \retval FAIL Command failed. Error message has been displayed.
*/
int
cmd_oscmd(struct cmd_token *uct, int arg_count, int arg1, int arg2, char *cp)