Files
faceclaw/app/apps/terminal/index.ts
T
James Babcock fd3c26333f Add bluetooth keyboard support
G2 only: You can pair the glasses with a bluetooth keyboard. It will
relay key events, and you can use it to type in some apps and to
navigate the UI.
2026-11-15 01:54:54 -08:00

23 lines
690 B
TypeScript

import { launchWorkerAppWindow, type AppDefinition } from "../app-definition";
const terminalApp: AppDefinition = {
appId: "terminal",
title: "Terminal",
icon: "terminal",
launch: (ctx) =>
launchWorkerAppWindow(ctx, {
createWorker: () => new Worker("./terminal-app.worker"),
windowId: "terminal:hub",
title: "Terminal",
iconLetter: "T",
icon: "terminal",
// Session windows stay independent: launching reopens the hub even
// while terminal sessions are open.
matchExistingBy: "windowId",
// The hub window can show a session too, so it takes keys like one.
acceptsKeys: true,
}),
};
export default terminalApp;