2019-06-01 15:07:59 -07:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
|
|
|
|
|
* @license MIT
|
|
|
|
|
*/
|
|
|
|
|
|
2023-11-01 06:50:08 -07:00
|
|
|
import { Terminal, ITerminalAddon } from '@xterm/xterm';
|
2019-06-01 15:07:59 -07:00
|
|
|
|
2023-11-01 10:35:10 -07:00
|
|
|
declare module '@xterm/addon-attach' {
|
2019-06-01 15:07:59 -07:00
|
|
|
export interface IAttachOptions {
|
|
|
|
|
/**
|
|
|
|
|
* Whether input should be written to the backend. Defaults to `true`.
|
|
|
|
|
*/
|
|
|
|
|
bidirectional?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class AttachAddon implements ITerminalAddon {
|
|
|
|
|
constructor(socket: WebSocket, options?: IAttachOptions);
|
|
|
|
|
public activate(terminal: Terminal): void;
|
|
|
|
|
public dispose(): void;
|
|
|
|
|
}
|
|
|
|
|
}
|