key_event_t Derived Type

type, public :: key_event_t

One decoded key press.


Components

Type Visibility Attributes Name Initial
integer(kind=int32), public :: char_code = 0_int32

Byte value, meaningful when code is KEY_CHAR.

integer(kind=int32), public :: code = KEY_NONE

One of the KEY_* codes.


Source Code

   type :: key_event_t
      !! One decoded key press.
      integer(int32) :: code = KEY_NONE
         !! One of the KEY_* codes.
      integer(int32) :: char_code = 0_int32
         !! Byte value, meaningful when `code` is `KEY_CHAR`.
   end type key_event_t