Add WebGL acceleration and link handling to terminal (#205)

This PR adds back WebGL acceleration (enabled by default) for XTerm. It
also adds back link handling and adds a new option (disabled by default)
to open all links internally as a new web block.

---------

Co-authored-by: sawka <mike.sawka@gmail.com>
This commit is contained in:
Evan Simkowitz
2024-08-07 14:27:16 -07:00
committed by GitHub
co-authored by sawka
parent 3c8bac6bf9
commit 7b87b7d7b9
9 changed files with 110 additions and 10 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
import { getApi } from "@/app/store/global";
import { openLink } from "@/app/store/global";
import { WOS, globalStore } from "@/store/global";
import * as services from "@/store/services";
import clsx from "clsx";
@@ -336,7 +336,7 @@ const WebView = memo(({ parentRef, model }: WebViewProps) => {
webview.addEventListener("new-window", (e: any) => {
e.preventDefault();
const newUrl = e.detail.url;
getApi().openExternal(newUrl);
openLink(newUrl);
});
// Suppress errors