Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConnectableTerminalTabComponent<P> Abstract

A class to base your custom connectable terminal tabs on

Type Parameters

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

activity: BehaviorSubject<boolean>
alternateScreenActive: boolean = false
app: AppService
binaryOutput: Subject<Buffer> = ...
config: ConfigService
contextMenuProviders: TabContextMenuItemProvider[]
customTitle: string

User-defined title override

decorators: TerminalDecorator[] = []
disableDynamicTitle: boolean = false

Disables display of dynamic window/tab title provided by the shell

element: ElementRef<any>
enablePassthrough: boolean = true

Enables normal passthrough from session output to terminal input

frontend?: Frontend
frontendReady: Subject<void> = ...
hasActivity: boolean

Last tab activity state

hasFocus: boolean
hostApp: HostAppService
hostView: ViewRef

ViewRef to the tab DOM element

hostWindow: HostWindowService
hotkeys: HotkeysService
injector: Injector
isDisconnectedByHand: boolean = false
log: LogService
logger: Logger
multifocus: MultifocusService
notifications: NotificationsService
output: Subject<string> = ...
parent: null | BaseTabComponent

Parent tab (usually a SplitTabComponent)

platform: PlatformService
profile: P
progress: BehaviorSubject<null | number>
recentInputs: string = ''
reconnectOffered: boolean = false
recoveryStateChangedHint: Subject<void>

Ping this if your recovery state has been changed and you want your tab state to be saved sooner

savedState?: any
savedStateIsLive: boolean = false
searchPanel?: SearchPanelComponent
session: null | BaseSession = null
sessionChanged: Subject<null | BaseSession> = ...
showSearchPanel: boolean = false
themes: ThemesService
title: string

Current tab title

translate: TranslateService
viewContainer?: ViewContainerRef
viewContainerEmbeddedRef?: EmbeddedViewRef<any>
visibility: BehaviorSubject<boolean>
zone: NgZone
zoom: number = 0
animations: AnimationTriggerMetadata[] = ...
styles: string[] = ...
template: string = ...

Accessors

  • get activity$(): Observable<boolean>
  • Returns Observable<boolean>

  • get alternateScreenActive$(): Observable<boolean>
  • get binaryOutput$(): Observable<Buffer>
  • get blurred$(): Observable<void>
  • Returns Observable<void>

  • get color(): null | string
  • set color(value: null | string): void
  • CSS color override for the tab's header

    Returns null | string

  • CSS color override for the tab's header

    Parameters

    • value: null | string

    Returns void

  • get destroyed$(): Observable<void>
  • Returns Observable<void>

  • get focused$(): Observable<void>
  • Returns Observable<void>

  • get frontendReady$(): Observable<void>
  • get hasTitleInset(): boolean
  • get icon(): null | string
  • set icon(value: null | string): void
  • icon override for the tab's header

    Returns null | string

  • icon override for the tab's header

    Parameters

    • value: null | string

    Returns void

  • get input$(): Observable<Buffer>
  • get output$(): Observable<string>
  • get progress$(): Observable<null | number>
  • Returns Observable<null | number>

  • get recoveryStateChangedHint$(): Observable<void>
  • Returns Observable<void>

  • get titleChange$(): Observable<string>
  • Returns Observable<string>

  • get topmostParent(): null | BaseTabComponent
  • Returns null | BaseTabComponent

  • get visibility$(): Observable<boolean>
  • Returns Observable<boolean>

Methods

  • addEventListenerUntilDestroyed(element: HTMLElement, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
  • Parameters

    • element: HTMLElement
    • event: string
    • handler: EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • attachSessionHandler<T>(observable: Observable<T>, handler: ((v: T) => void)): void
  • attachSessionHandlers(destroyOnSessionClose?: boolean): void
  • attachTermContainerHandlers(): void
  • buildContextMenu(): Promise<MenuItemOptions[]>
  • canClose(): Promise<boolean>
  • Return false to prevent the tab from being closed

    Returns Promise<boolean>

  • clearActivity(): void
  • clearServiceMessagesOnConnect(): void
  • configure(): void
  • copyCurrentPath(): Promise<void>
  • destroy(): Promise<void>
  • detachSessionHandlers(): void
  • detachTermContainerHandlers(): void
  • disconnect(): Promise<void>
  • displayActivity(): void
  • emitBlurred(): void
  • emitFocused(): void
  • emitVisibility(visibility: boolean): void
  • getCurrentProcess(): Promise<null | BaseTabProcess>
  • Override this to enable task completion notifications for the tab

    Returns Promise<null | BaseTabProcess>

  • getRecoveryToken(options?: GetRecoveryTokenOptions): Promise<RecoveryToken>
  • handleRightMouseDown(event: MouseEvent): Promise<void>
  • handleRightMouseUp(event: MouseEvent): Promise<void>
  • hideToolbar(): void
  • initializeSession(): Promise<void>
  • insertIntoContainer(container: ViewContainerRef): EmbeddedViewRef<any>
  • isSessionExplicitlyTerminated(): boolean
  • ngOnInit(): void
  • offerReconnection(): void
  • onFrontendReady(): void
  • onSessionClosed(destroyOnSessionClose?: boolean): void
  • onSessionDestroyed(): void
  • paste(): Promise<void>
  • reconnect(): Promise<void>
  • removeFromContainer(): void
  • resetZoom(): void
  • sendInput(data: string | Buffer): void
  • setProgress(progress: null | number): void
  • Sets visual progressbar on the tab

    Parameters

    • progress: null | number

    Returns void

  • setSession(session: null | BaseSession, destroyOnSessionClose?: boolean): void
  • setTitle(title: string): void
  • shouldTabBeDestroyedOnSessionClose(): boolean
  • showToolbar(): void
  • startSpinner(text?: string): void
  • stopSpinner(): void
  • subscribeUntilDestroyed<T>(observable: Observable<T>, handler: ((v: T) => void)): void
  • Type Parameters

    • T

    Parameters

    • observable: Observable<T>
    • handler: ((v: T) => void)
        • (v: T): void
        • Parameters

          • v: T

          Returns void

    Returns void

  • togglePinToolbar(): void
  • withSpinnerPaused(work: (() => any)): Promise<void>
  • write(data: string): Promise<void>
  • writeRaw(data: string): Promise<void>
  • zoomIn(): void
  • zoomOut(): void

Generated using TypeDoc