From 6eb5f99f1e71e8ea89057c2843f3e8273a0d2fdd Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 15 Dec 2003 22:45:27 +0000 Subject: 19295: $CONTEXT zle parameter --- Doc/Zsh/zle.yo | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index 409a04026..0ebbb2739 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -593,6 +593,25 @@ The number of screen lines needed for the edit buffer currently displayed on screen (i.e. without any changes to the preceding parameters done after the last redisplay); read-only. ) +vindex(CONTEXT) +item(tt(CONTEXT) (scalar))( +The context in which zle was called to read a line; read-only. One of +the values: +startitem() +item(start)( +The start of a command line (at prompt tt(PS1)). +) +item(cont)( +A continuation to a command line (at prompt tt(PS2)). +) +item(select)( +In a tt(select) loop. +) +item(vared)( +Editing a variable in tt(vared). +) +enditem() +) vindex(CURSOR) item(tt(CURSOR) (integer))( The offset of the cursor, within the edit buffer. This is in the range -- cgit 1.4.1