Enum termion::event::Key [] [src]

pub enum Key {
    Backspace,
    Left,
    Right,
    Up,
    Down,
    Home,
    End,
    PageUp,
    PageDown,
    Delete,
    Insert,
    F(u8),
    Char(char),
    Alt(char),
    Ctrl(char),
    Null,
    // some variants omitted
}

A key.

Variants

Backspace

Backspace.

Left

Left arrow.

Right

Right arrow.

Up

Up arrow.

Down

Down arrow.

Home

Home key.

End

End key.

PageUp

Page Up key.

PageDown

Page Down key.

Delete

Delete key.

Insert

Insert key.

F(u8)

Function keys.

Only function keys 1 through 12 are supported.

Char(char)

Normal character.

Alt(char)

Alt modified character.

Ctrl(char)

Ctrl modified character.

Note that certain keys may not be modifiable with ctrl, due to limitations of terminals.

Null

Null byte.

Trait Implementations

impl Hash for Key
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

Feeds this value into the state given, updating the hasher as necessary.

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Eq for Key
[src]

impl PartialEq for Key
[src]

fn eq(&self, __arg_0: &Key) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Key) -> bool

This method tests for !=.

impl Clone for Key
[src]

fn clone(&self) -> Key

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Key
[src]

impl Debug for Key
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.