Pseudoterminal
Defines the interface of a terminal pty, enabling extensions to control a terminal.
Properties
Implement to handle incoming keystrokes in the terminal or when an extension calls Terminal.sendText. data
contains the keystrokes/text serialized into their corresponding VT sequence representation.
An event that when fired allows changing the name of the terminal.
An event that when fired will signal that the pty is closed and dispose of the terminal.
An event that when fired allows overriding the dimensions of the terminal. Note that when set, the overridden dimensions will only take effect when they are lower than the actual dimensions of the terminal (ie. there will never be a scroll bar). Set to undefined
for the terminal to go back to the regular dimensions (fit to the size of the panel).
An event that when fired will write data to the terminal. Unlike Terminal.sendText which sends text to the underlying child pseudo-device (the child), this will write the text to parent pseudo-device (the terminal itself).
Implement to handle when the number of rows and columns that fit into the terminal panel changes, for example when font size changes or when the panel is resized. The initial state of a terminal's dimensions should be treated as undefined
until this is triggered as the size of a terminal isn't known until it shows up in the user interface.