From c481e1eb2425d7805bd8af5b1b57b9c1d14e3447 Mon Sep 17 00:00:00 2001 From: iroiro147 Date: Sat, 8 Aug 2026 16:42:04 +0530 Subject: [PATCH] docs: fix TypeScript terminal shell key --- docs/src/app/docs/terminal/page.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/app/docs/terminal/page.mdx b/docs/src/app/docs/terminal/page.mdx index fc33caa74..d951865e3 100644 --- a/docs/src/app/docs/terminal/page.mdx +++ b/docs/src/app/docs/terminal/page.mdx @@ -17,7 +17,7 @@ The declarative shape is one element. Spawn a pty from your model (`fx.ptySpawn` ```ts import { Cmd } from "@native-sdk/core"; -const shellKey = 1; +const shellKey = "shell"; export function view(model: Model) { return terminal({ pty: shellKey, scrollback: model.scrollback, grow: 1, label: "Shell", onTerminal: "termState" }); @@ -90,7 +90,7 @@ The pty key is ordinary model data — pick it like an effect key. Spawn the she ```ts import { Cmd, asciiBytes } from "@native-sdk/core"; -const shellKey = 1; +const shellKey = "shell"; export function update(model: Model, msg: Msg): Model | [Model, Cmd] { switch (msg.kind) {