Pass options to the constructor, or change them later. Every option applies at
runtime: font and padding changes re-measure the cell and re-fit the grid, and
everything else repaints.
const term = new Terminal({ fontSize: 14, cursorStyle: 'bar' })term.setOptions({ fontSize: 16, theme: 'nord' })term.setOption('cursorBlink', true)
On macOS, Option acts as Alt instead of composing characters
macOptionClickForcesSelection
false
On macOS, Option+click selects text even when the app tracks the mouse
rightClickSelectsWord
false
Right-click selects the word under the pointer
altClickMovesCursor
true
Alt+click on the prompt line moves the cursor there
disableStdin
false
Ignore all user input
ignoreBracketedPasteMode
false
Never wrap pastes in bracketed paste markers
convertEol
false
Treat \n written to the terminal as \r\n
Hold Shift to select text while an application tracks the mouse. On macOS,
Cmd+C and Cmd+V copy and paste; elsewhere use Ctrl+Shift+C and Ctrl+Shift+V.