diff options
author | axel <axel@liljencrantz.se> | 2006-10-05 07:39:48 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-10-05 07:39:48 +1000 |
commit | 91c745e4b5c5b6d231e11b7e90f02f69c96023b7 (patch) | |
tree | c5712b57ce49b67bbc5ae29453ecbf6aa720aa97 /doc_src/commandline.txt | |
parent | 7d7334988930f45d9772257968982c6fa0381b20 (diff) |
Add the possibility to set the cursor position using the commandline builtin
darcs-hash:20061004213948-ac50b-3f673edeb01390bb3f280812d90bc8469f2f8ba8.gz
Diffstat (limited to 'doc_src/commandline.txt')
-rw-r--r-- | doc_src/commandline.txt | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/doc_src/commandline.txt b/doc_src/commandline.txt index 55085e8d..b8834ee8 100644 --- a/doc_src/commandline.txt +++ b/doc_src/commandline.txt @@ -9,8 +9,22 @@ - \c CMD is the new value of the commandline. If unspecified, the current value of the commandline is written to standard output. +The following switches change what the commandline builtin does + +- \c -C or \c --cursor set or get the current cursor position, not + the contents of the buffer. If no argument is given, the current + cursor position is printed, otherwise the argument is interpreted + as the new cursor position. +- \c -f or \c --function inject readline functions into the + reader. This option can not be combined with any other option. It + will cause any additional arguments to be interpreted as readline + functions, and these functions will be injected into the reader, so + that they will be returned to the reader before any additional + actual keypresses are read. + + The following switches change the way \c commandline updates the -commandline +commandline buffer - \c -a or \c --append do not remove the current commandline, append the specified string at the end of it @@ -28,20 +42,12 @@ or updated - \c -t or \c --current_token select the current token. The following switch changes the way \c commandline prints the current -commandline +commandline buffer - \c -c or \c --cut-at-cursor only print selection up until the current cursor position - \c -o or \c --tokenize tokenize the selection and print one string-type token per line -Other switches - -- \c -f or \c --function inject readline functions into the - reader. This option can not be combined with any other option. It - will cause any additional arguments to be interpreted as readline - functions, and these functions will be injected into the reader, so - that they will be returned to the reader before any additional - actual keypresses are read. If commandline is called during a call to complete a given string using <code>complete -C STRING</code>, commandline will consider the |