Terminal Cryptic transformers

Cryptic transformers are utilities which allows you to transform in the background the cryptic entries sent by the terminal before it hits the host.

registerCrypticTransformer

Registers a cryptic transformer which transforms the cryptic entry text sent by the Terminal into a different one.

Copy
registerCrypticTransformer(crypticTransformer: ({
  from: Object,
  to: Object,
  cryptic: String,
  terminalId: String,
  }) => String):void;
  • crypticTransformer Function

    Required. A function to be registered which receives the cryptic entry and returns a new one.

    • from Object

      Required. Initial position to the cryptic entry on the terminal.

    • to Object

      Required. Cursor position on the terminal when action is dispatched.

    • cryptic String

      Required. Cryptic entry sended from the terminal.

    • terminalId String

      Required. The ID of the terminal which sends the cryptic.

    • terminalId String

      Required. The ID of the terminal which sends the cryptic.

Returns
  • String

    Returns the new cryptic to be sent to the host.