Module: Bindef::Extras::CtrlHelper

Defined in:
lib/bindef/extras/ctrl.rb

Overview

Helpers for Ctrl.

Constant Summary collapse

CONTROL_NAMES =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

A sequential list of symbolic names for control codes.

%i[
  nul soh stx etx eot enq ack bel bs ht lf vt ff cr so si dle dc1 dc2 dc3 dc4 nak syn etb
  can em sub esc fs gs rs us
].freeze
CONTROL_MAP =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

A mapping of symbolic names for control codes to their numeric values.

CONTROL_NAMES.zip(0x00..0x1F).to_h.freeze