This repo demonstrates how to utilize the integrated terminal extension API coming in Visual Studio Code v1.5.0.
Several commands are exposed prefixed with "Terminal API" that show how to use the API:
Terminal API: Create Terminal
: Create a terminalTerminal API: Create Terminal and Immediately Send
: Create a terminal and immediately send textTerminal API: Create Terminal (zsh login shell)
: Create a zsh login shell terminal using a custom shell executable and argumentsTerminal API: Hide
: Hides the most recently created terminalTerminal API: Show
: Shows the most recently created terminalTerminal API: Send Text
: Sendsecho "Hello World!"
to the terminalTerminal API: Send Text (no implied \n)
: Sendsecho "Hello World!"
to the terminal explicitly indicating to not add a\n
to the end of the textTerminal API: Dispose
: Disposes the most recently created terminal
Coming in v1.6.0:
Create Terminal (zsh login shell) [v1.6+]
: Creates a terminal using shell path and args set by extensionTerminal API: Write process ID to console [v1.6+]
: Uses Terminal.processId to get the shell's process ID