Hyperlinkv0.8.0-beta.28

Terminal

Terminal.UserInputinterfaceeffect/Terminal.ts:97
UserInput

A terminal input event containing an optional raw character and the parsed key that was pressed.

When to use

Use when consuming low-level terminal input events from Terminal.readInput and you need both raw character input and parsed key metadata.

modelsKey
Source effect/Terminal.ts:9710 lines
export interface UserInput {
  /**
   * The character read from the user (if any).
   */
  readonly input: Option.Option<string>
  /**
   * The key that the user pressed.
   */
  readonly key: Key
}
Referenced by 2 symbols