summaryrefslogtreecommitdiffstats
path: root/html/src/components/app.tsx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 08:14:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 08:14:42 +0000
commit6963f5f48ed68cb42b92e40c84014bd12cd377fc (patch)
treec2abdd80665f8494280a65417a9c21156ff41125 /html/src/components/app.tsx
parentAdding upstream version 1.7.3. (diff)
downloadttyd-6963f5f48ed68cb42b92e40c84014bd12cd377fc.tar.xz
ttyd-6963f5f48ed68cb42b92e40c84014bd12cd377fc.zip
Adding upstream version 1.7.7.upstream/1.7.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'html/src/components/app.tsx')
-rw-r--r--html/src/components/app.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/html/src/components/app.tsx b/html/src/components/app.tsx
index 71a2d89..9057727 100644
--- a/html/src/components/app.tsx
+++ b/html/src/components/app.tsx
@@ -1,9 +1,10 @@
import { h, Component } from 'preact';
-import { ITerminalOptions, ITheme } from 'xterm';
-import { ClientOptions, FlowControl } from './terminal/xterm';
import { Terminal } from './terminal';
+import type { ITerminalOptions, ITheme } from '@xterm/xterm';
+import type { ClientOptions, FlowControl } from './terminal/xterm';
+
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
const path = window.location.pathname.replace(/[/]+$/, '');
const wsUrl = [protocol, '//', window.location.host, path, '/ws', window.location.search].join('');
@@ -15,6 +16,8 @@ const clientOptions = {
enableZmodem: false,
enableTrzsz: false,
enableSixel: false,
+ isWindows: false,
+ unicodeVersion: '11',
} as ClientOptions;
const termOptions = {
fontSize: 13,