pub enum KeyBinding {
Show 93 variants Break, SoftReset, Reset, DownArrow, UpArrow, LeftArrow, RightArrow, Home, Backspace, FunctionKey(u8), DeleteLine, InsertLine, DeleteCharacter, InsertCharacter, InsertMode, Erase, ClearToEndOfScreen, ClearToEndOfLine, ScrollForward, ScrollBackward, NextPage, PreviousPage, SetTab, ClearTab, ClearAllTabs, Enter, Print, HomeDown, KeyPadUpperLeft, KeyPadUpperRight, KeyPadCenter, KeyPadLowerLeft, KeyPadLowerRight, BackTab, Begin, Cancel, Close, Command, Copy, Create, End, Exit, Find, Help, Mark, Message, Move, Next, Open, Options, Previous, Redo, Reference, Refresh, Replace, Restart, Resume, Save, ShiftBegin, ShiftCancel, ShiftCommand, ShiftCopy, ShiftCreate, ShiftDeleteCharacter, ShiftDeleteLine, Select, ShiftEnd, ShiftClearToEndOfLine, ShiftExit, ShiftFind, ShiftHelp, ShiftHome, ShiftInsertCharacter, ShiftLeftArrow, ShiftMessage, ShiftMove, ShiftNext, ShiftOptions, ShiftPrevious, ShiftPrint, ShiftRedo, ShiftReplace, ShiftRightArrow, ShiftResume, ShiftSave, ShiftSuspend, ShiftUndo, Suspend, Undo, MouseEvent, ResizeEvent, Event, UserDefined(i32),
}
Expand description

Keys returned by NCurses getch() and get_wch() families of functions.

Variants

Break

Break key (unreliable)

SoftReset

Soft (partial) reset (unreliable)

Reset

Reset or hard reset (unreliable)

DownArrow

down-arrow key

UpArrow

up-arrow key

LeftArrow

left-arrow key

RightArrow

right-arrow key

Home

home key

Backspace

backspace key

FunctionKey(u8)

Function keys. Space for 64

DeleteLine

delete-line key

InsertLine

insert-line key

DeleteCharacter

delete-character key

InsertCharacter

insert-character key

InsertMode

sent by rmir or smir in insert mode

Erase

clear-screen or erase key

ClearToEndOfScreen

clear-to-end-of-screen key

ClearToEndOfLine

clear-to-end-of-line key

ScrollForward

scroll-forward key

ScrollBackward

scroll-backward key

NextPage

next-page key

PreviousPage

previous-page key

SetTab

set-tab key

ClearTab

clear-tab key

ClearAllTabs

clear-all-tabs key

Enter

enter/send key

Print

print key

HomeDown

lower-left key (home down)

KeyPadUpperLeft

upper left of keypad

KeyPadUpperRight

upper right of keypad

KeyPadCenter

center of keypad

KeyPadLowerLeft

lower left of keypad

KeyPadLowerRight

lower right of keypad

BackTab

back-tab key

Begin

begin key

Cancel

cancel key

Close

close key

Command

command key

Copy

copy key

Create

create key

End

end key

Exit

exit key

Find

find key

Help

help key

Mark

mark key

Message

message key

Move

move key

Next

next key

Open

open key

Options

options key

Previous

previous key

Redo

redo key

Reference

reference key

Refresh

refresh key

Replace

replace key

Restart

restart key

Resume

resume key

Save

save key

ShiftBegin

shifted begin key

ShiftCancel

shifted cancel key

ShiftCommand

shifted command key

ShiftCopy

shifted copy key

ShiftCreate

shifted create key

ShiftDeleteCharacter

shifted delete-character key

ShiftDeleteLine

shifted delete-line key

Select

select key

ShiftEnd

shifted end key

ShiftClearToEndOfLine

shifted clear-to-end-of-line key

ShiftExit

shifted exit key

ShiftFind

shifted find key

ShiftHelp

shifted help key

ShiftHome

shifted home key

ShiftInsertCharacter

shifted insert-character key

ShiftLeftArrow

shifted left-arrow key

ShiftMessage

shifted message key

ShiftMove

shifted move key

ShiftNext

shifted next key

ShiftOptions

shifted options key

ShiftPrevious

shifted previous key

ShiftPrint

shifted print key

ShiftRedo

shifted redo key

ShiftReplace

shifted replace key

ShiftRightArrow

shifted right-arrow key

ShiftResume

shifted resume key

ShiftSave

shifted save key

ShiftSuspend

shifted suspend key

ShiftUndo

shifted undo key

Suspend

suspend key

Undo

undo key

MouseEvent

Mouse event has occurred

ResizeEvent

Terminal resize event

Event

👎 Deprecated since 0.6.3:

this was deprecated as of NCurses API v6.3.20211021

We were interrupted by an event

UserDefined(i32)

A user defined key.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Performs the conversion.

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.