Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Tab

Hierarchy

  • Tab

Index

Methods

getTerminal

isAlive

  • isAlive(): boolean
  • True if this terminal is still open.

    Once the uesr closes a terminal tab and the tab disappears, then this will return false.

    Returns boolean

showListPicker

  • Show a list picker requesting an item from the list.

    This shows the given list of strings and lets the user select one or them or cancel the picker. The index of the item in the list is return if an item is selected. undefined is returned if the user canceled the picker by pressing escape, for example. The picker appears with in this tab.

    See ListPickerOptions for more details about how to configure this.

    Parameters

    Returns Promise<number | undefined>

    a promise which resolves to the selected item index or undefined if it was canceled.

showNumberInput

  • Show an input box requesting a number.

    This shows a picker/dialog on this tab where the user can enter a number. The acceptable range of values can be defined in the options parameter. undefined is returned if the user canceled the picker by pressing escape, for example. The picker appears with in this tab.

    See NumberInputOptions for more details about how to configure this.

    Parameters

    Returns Promise<number | undefined>

    a promise which resolves to the entered number or undefined if it was canceled.

Generated using TypeDoc