tuil
ReferencePackages@mwillbanks/tuil-coreAPI

TerminalCapabilities

interface exported by @mwillbanks/tuil-core.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-core.

export interface TerminalCapabilities {
  readonly width: number;
  readonly height: number;
  readonly colorDepth: ColorDepth;
  readonly unicode: boolean;
  readonly hyperlinks: boolean;
  readonly interactive: boolean;
  readonly tty: boolean;
  readonly alternateScreen: boolean;
  readonly mouse: boolean;
  readonly images: boolean;
  readonly reducedMotion: boolean;
  readonly platform: TerminalPlatform;
  readonly bracketedPaste?: boolean;
  readonly clipboard?: "osc52" | "platform" | "none";
  readonly focusReporting?: boolean;
  readonly kittyKeyboard?: boolean;
  readonly notifications?: boolean;
}

Members

MemberTypeRequiredDescriptionRelated types
widthnumberYesThe width member uses the number contract.
heightnumberYesThe height member uses the number contract.
colorDepthColorDepthYesThe colorDepth member uses the ColorDepth contract.ColorDepth
unicodebooleanYesThe unicode member uses the boolean contract.
hyperlinksbooleanYesThe hyperlinks member uses the boolean contract.
interactivebooleanYesThe interactive member uses the boolean contract.
ttybooleanYesThe tty member uses the boolean contract.
alternateScreenbooleanYesThe alternateScreen member uses the boolean contract.
mousebooleanYesThe mouse member uses the boolean contract.
imagesbooleanYesThe images member uses the boolean contract.
reducedMotionbooleanYesThe reducedMotion member uses the boolean contract.
platformTerminalPlatformYesThe platform member uses the TerminalPlatform contract.TerminalPlatform
bracketedPasteboolean | undefinedNoThe bracketedPaste member uses the boolean | undefined contract.
clipboard"osc52" | "platform" | "none" | undefinedNoThe clipboard member uses the "osc52" | "platform" | "none" | undefined contract.
focusReportingboolean | undefinedNoThe focusReporting member uses the boolean | undefined contract.
kittyKeyboardboolean | undefinedNoThe kittyKeyboard member uses the boolean | undefined contract.
notificationsboolean | undefinedNoThe notifications member uses the boolean | undefined contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-core

On this page