terminal: KAM (mode 2)

This has an associated config `vt-kam-allowed` which defaults to "false"
since this mode can cause the terminal to become mostly unusable. We
include this mode for completions sake however.
This commit is contained in:
Mitchell Hashimoto
2023-10-12 17:07:47 -07:00
parent f5a80f6b98
commit 6a065540dd
5 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
export default function VTMode({
value,
ansi = false,
}: {
value: number;
ansi: boolean;
}) {
return (
<div className="flex my-2.5">
<div className="border px-1 grid grid-rows-2 grid-cols-1 text-center">
<div>
{ansi ? "?" : ""}
{value}
</div>
</div>
</div>
);
}