Skip to content

Function: encodeKeys()

@termwright/driver/experimental


@termwright/driver/experimental / encodeKeys

encodeKeys(keys, modes): Uint8Array

Defined in: keys.ts:189

Encodes a key description into the bytes a terminal would send.

string

one or more chords, e.g. 'Control+A' or 'Escape ArrowUp'

KeyEncodingModes

the child’s current DECCKM/DECNKM state

Uint8Array