comparison runtime/doc/terminal.txt @ 13476:d130044d4f1f v8.0.1612

patch 8.0.1612: need to close terminal after shell stopped commit https://github.com/vim/vim/commit/1dd98334d6daee8abefcd640291d4b777d9f0f96 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 16 22:54:53 2018 +0100 patch 8.0.1612: need to close terminal after shell stopped Problem: Need to close terminal after shell stopped. Solution: Make :terminal without argument close the window by default.
author Christian Brabandt <cb@256bit.org>
date Fri, 16 Mar 2018 23:00:07 +0100
parents 33eea5ce5415
children 9eebe457eb3c
comparison
equal deleted inserted replaced
13475:15d3e684a78e 13476:d130044d4f1f
138 the input and output to the terminal. 138 the input and output to the terminal.
139 If [command] is not given the 'shell' option is used. 139 If [command] is not given the 'shell' option is used.
140 if [command] is NONE no job is started, the pty of the 140 if [command] is NONE no job is started, the pty of the
141 terminal can be used by a command like gdb. 141 terminal can be used by a command like gdb.
142 142
143 If [command] is missing the default behavior is to
144 close the terminal when the shell exits. This can be
145 changed with the ++noclose argument.
146 If [command] is present the default behavior is to
147 keep the terminal open in Terminal-Normal mode. This
148 can be changed with the ++close argument.
149
143 A new buffer will be created, using [command] or 150 A new buffer will be created, using [command] or
144 'shell' as the name, prefixed with a "!". If a buffer 151 'shell' as the name, prefixed with a "!". If a buffer
145 by this name already exists a number is added in 152 by this name already exists a number is added in
146 parentheses. E.g. if "gdb" exists the second terminal 153 parentheses. E.g. if "gdb" exists the second terminal
147 buffer will use "!gdb (1)". 154 buffer will use "!gdb (1)".
153 160
154 *term++close* *term++open* 161 *term++close* *term++open*
155 Supported [options] are: 162 Supported [options] are:
156 ++close The terminal window will close 163 ++close The terminal window will close
157 automatically when the job terminates. 164 automatically when the job terminates.
165 ++noclose The terminal window will NOT close
166 automatically when the job terminates.
158 ++open When the job terminates and no window 167 ++open When the job terminates and no window
159 shows it, a window will be opened. 168 shows it, a window will be opened.
160 Note that this can be interruptive. 169 Note that this can be interruptive.
170 The last of ++close, ++noclose and ++open
171 matters and rules out earlier arguments.
172
161 ++curwin Open the terminal in the current 173 ++curwin Open the terminal in the current
162 window, do not split the current 174 window, do not split the current
163 window. Fails if the current buffer 175 window. Fails if the current buffer
164 cannot be |abandon|ed. 176 cannot be |abandon|ed.
165 ++hidden Open the terminal in a hidden buffer, 177 ++hidden Open the terminal in a hidden buffer,