本文整理汇总了TypeScript中xterm.Terminal.off方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Terminal.off方法的具体用法?TypeScript Terminal.off怎么用?TypeScript Terminal.off使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xterm.Terminal
的用法示例。
在下文中一共展示了Terminal.off方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: Terminal
t.on('keydown', (event: KeyboardEvent) => console.log(event));
t.on('keypress', () => {});
t.on('keypress', (event: KeyboardEvent) => console.log(event));
t.on('refresh', () => {});
t.on('refresh', (data: {start: number, end: number}) => console.log(data));
t.on('resize', () => {});
t.on('resize', (data: {cols: number, rows: number}) => console.log(data));
t.on('scroll', () => {});
t.on('scroll', (ydisp: number) => console.log(ydisp));
t.on('title', () => {});
t.on('title', (title: string) => console.log(title));
}
{
const t: Terminal = new Terminal();
// no arg
t.off('blur', () => {});
t.off('focus', () => {});
t.off('linefeed', () => {});
t.off('selection', () => {});
// args
t.off('data', () => {});
t.off('data', (data: string) => console.log(data));
t.off('key', () => {});
t.off('key', (key: string) => console.log(key, event));
t.off('key', (key: string, event: KeyboardEvent) => console.log(key, event));
t.off('keydown', () => {});
t.off('keydown', (event: KeyboardEvent) => console.log(event));
t.off('keypress', () => {});
t.off('keypress', (event: KeyboardEvent) => console.log(event));
t.off('refresh', () => {});
t.off('refresh', (data: {element: HTMLElement, start: number, end: number}) => console.log(data));