Options
All
  • Public
  • Public/Protected
  • All
Menu

Module terminal

Index

References

Namespaces

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

References

Re-exports TerminalContribution
Re-exports bindTerminalServer

Type Aliases

ConfirmOnExitType: "never" | "always" | "hasChildProcesses"
CursorStyle: "block" | "underline" | "bar"
CursorStyleVSCode: CursorStyle | "line"
Profiles: null | {}
SerializableEnvironmentVariableCollection: [string, EnvironmentVariableMutator][]
ShellProcessFactory: ((options: ShellProcessOptions) => ShellProcess)

Type declaration

ShellTerminalOSPreferences<T>: { [ key in OS.Type]: T }

Type Parameters

  • T

ShellTerminalServerProxy: JsonRpcProxy<IShellTerminalServer>
TerminalPreferences: PreferenceProxy<TerminalConfiguration>
TerminalRendererType: "canvas" | "dom"
TerminalSearchWidgetFactory: ((terminal: Terminal) => TerminalSearchWidget)

Type declaration

XtermLinkFactory: ((link: TerminalLink, terminal: TerminalWidgetImpl, context: LinkContext) => ILink)

Type declaration

Variables

ContributedTerminalProfileStore: typeof ContributedTerminalProfileStore = ...
DEFAULT_TERMINAL_RENDERER_TYPE: "canvas" = 'canvas'
ENVIRONMENT_VARIABLE_COLLECTIONS_KEY: "terminal.integrated.environmentVariableCollections" = 'terminal.integrated.environmentVariableCollections'
IShellTerminalServer: typeof IShellTerminalServer = ...
ITerminalServer: typeof ITerminalServer = ...
LinkContext: typeof LinkContext = ...
NULL_PROFILE: TerminalProfile = ...
ShellProcessFactory: typeof ShellProcessFactory = ...
ShellProcessOptions: typeof ShellProcessOptions = ...
ShellTerminalServerProxy: typeof ShellTerminalServerProxy = ...
TERMINAL_SEARCH_WIDGET_FACTORY_ID: "terminal-search" = 'terminal-search'
TERMINAL_WIDGET_FACTORY_ID: "terminal" = 'terminal'
TerminalConfigSchema: PreferenceSchema = ...
TerminalContribution: typeof TerminalContribution = ...
TerminalLink: typeof TerminalLink = ...
TerminalLinkProvider: typeof TerminalLinkProvider = ...
TerminalPreferenceContribution: typeof TerminalPreferenceContribution = ...
TerminalPreferences: typeof TerminalPreferences = ...
TerminalProfileService: typeof TerminalProfileService = ...
TerminalSearchWidgetFactory: typeof TerminalSearchWidgetFactory = ...
TerminalService: typeof TerminalService = ...

Service manipulating terminal widgets.

TerminalWidgetOptions: typeof TerminalWidgetOptions = ...

Terminal widget options.

UserTerminalProfileStore: typeof UserTerminalProfileStore = ...
XtermLink: typeof XtermLink = ...
XtermLinkFactory: typeof XtermLinkFactory = ...
default: ContainerModule
default: ContainerModule
shellTerminalPath: "/services/shell-terminal" = '/services/shell-terminal'
terminalAnsiColorMap: {} = ...

Type declaration

  • [key: string]: { defaults: ColorDefaults; index: number }
    • defaults: ColorDefaults
    • index: number
terminalPath: "/services/terminal" = '/services/terminal'
terminalsPath: "/services/terminals" = '/services/terminals'

Functions

  • bindTerminalPreferences(bind: Bind): void
  • convertLinkRangeToBuffer(lines: IBufferLine[], bufferWidth: number, range: TerminalRange, startLine: number): IBufferRange
  • Converts a possibly wrapped link's range (comprised of string indices) into a buffer range that plays nicely with xterm.js

    Parameters

    • lines: IBufferLine[]

      A single line (not the entire buffer)

    • bufferWidth: number

      The number of columns in the terminal

    • range: TerminalRange

      The link range - string indices

    • startLine: number

      The absolute y position (on the buffer) of the line

    Returns IBufferRange

  • createCommonBindings(bind: Bind): void
  • createTerminalPreferences(preferences: PreferenceService, schema?: PreferenceSchema): TerminalPreferences
  • createTerminalTestContainer(): Container
  • getLinkContext(terminal: Terminal, line: number, maxLinkLength?: number): LinkContext