UNPKG

@vscode/sync-api-service

Version:

A sync implementation of the VS Code API. Only supported from a worker in NodeJS and browser

20 lines (19 loc) 627 B
import { Event, Pseudoterminal } from 'vscode'; import { CharacterDeviceDriver } from './device'; export declare enum TerminalMode { idle = 1, inUse = 2 } export interface ServicePseudoTerminal extends Pseudoterminal, CharacterDeviceDriver { readonly id: string; readonly onDidCtrlC: Event<void>; readonly onDidClose: Event<void>; readonly onAnyKey: Event<void>; setMode(mode: TerminalMode): void; setName(name: string): void; writeString(str: string): void; readline(): Promise<string>; } export declare namespace ServicePseudoTerminal { function create(): ServicePseudoTerminal; }