Update typings/xterm.d.ts

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
This commit is contained in:
silamon
2021-11-10 09:15:43 +01:00
committed by GitHub
co-authored by Daniel Imms
parent 3582c00a61
commit b1c179461d
+20 -1
View File
@@ -636,7 +636,26 @@ declare module 'xterm' {
readonly modes: IModes;
/**
* Get the terminal options
* Gets or sets the terminal options. This supports setting multiple options.
*
* @example Get a single option
* ```typescript
* console.log(terminal.options.fontSize);
* ```
*
* @example Set a single option
* ```typescript
* terminal.options.fontSize = 12;
* ```
*
* @example Set multiple options
* ```typescript
* terminal.options = {
* fontSize: 12,
* fontFamily: 'Arial',
* ;
* ```
*/
*/
options: ITerminalOptions;