From 451520af975c978c8ffaa1d9a0959b50c1b8e294 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 04:54:50 +0200 Subject: Adding upstream version 1.7.7. Signed-off-by: Daniel Baumann --- html/src/components/terminal/xterm/addons/zmodem.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'html/src/components/terminal/xterm/addons/zmodem.ts') diff --git a/html/src/components/terminal/xterm/addons/zmodem.ts b/html/src/components/terminal/xterm/addons/zmodem.ts index 8571f68..52627ef 100644 --- a/html/src/components/terminal/xterm/addons/zmodem.ts +++ b/html/src/components/terminal/xterm/addons/zmodem.ts @@ -1,6 +1,6 @@ import { bind } from 'decko'; import { saveAs } from 'file-saver'; -import { IDisposable, ITerminalAddon, Terminal } from 'xterm'; +import { IDisposable, ITerminalAddon, Terminal } from '@xterm/xterm'; import * as Zmodem from 'zmodem.js/src/zmodem_browser'; import { TrzszFilter } from 'trzsz'; @@ -8,6 +8,7 @@ export interface ZmodeOptions { zmodem: boolean; trzsz: boolean; windows: boolean; + trzszDragInitTimeout: number; onSend: () => void; sender: (data: string | Uint8Array) => void; writer: (data: string | Uint8Array) => void; @@ -75,6 +76,7 @@ export class ZmodemAddon implements ITerminalAddon { sendToServer: data => sender(data), terminalColumns: terminal.cols, isWindowsShell: this.options.windows, + dragInitTimeout: this.options.trzszDragInitTimeout, }); const element = terminal.element as EventTarget; this.addDisposableListener(element, 'dragover', event => event.preventDefault()); -- cgit v1.2.3