PlainShell

Header, main, status. The smallest arrangement that is still a shell.

import { createApp, registerBuiltins } from '@textui/core';
import { createNodeTerminal } from '@textui/terminal';

const app = createApp({
  terminal: createNodeTerminal(),
  shell: 'plain',
  onBoot: registerBuiltins,
});

Props

No props of its own.

A shell decides where the surfaces go and nothing else. Switching between the four shipped ones changes the frame without touching a single mount, which is the property the whole surface system exists to give you.

plain places header, main and status. Anything opened into a surface it does not place simply does not appear - which is worth knowing when a mount seems to vanish.

See also


Back to top

MIT licensed. Pre-1.0 - the surface is still moving.