You can see below the API reference of this module.
Creates a new WebTerm
instance.
- Object
options
: Creates a new terminal instance: cols
(Number): The number of columns.rows
(Number): The number of rows.cwd
(String): The current working directory (default: the home directory).shell
(String): The shell to start (by default the shell).start
(String): The start program.ptyOptions
(Object): Custom options for the pty.js fork callinheritEnv
(Boolean): Iffalse
, it will prevent web-term to take the environment variables from the main process.
- Terminal The terminal instance.
- WebTerm The
WebTerm
instance.
Sends the terminal settings accross the sockets.
- Function
callback
: The callback function.
Watches the config file for changes.
Reads the settings from the config file.
- Function
callback
: The callback function.
Writes the settings in the config file.
- Object
data
: The new settings. - Function
callback
: The callback function.
Writes data in the WebTerm
instance.
- Buffer
data
: The buffer to write.
Destroys the WebTerm
instance.
Resizes the terminal.
- Number
cols
: The number of columns. - Number
rows
: The number of rows.