Enum ncursesw::KeyBinding
source · [−]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
this was deprecated as of NCurses API v6.3.20211021
We were interrupted by an event
UserDefined(i32)
A user defined key.
Trait Implementations
sourceimpl Clone for KeyBinding
impl Clone for KeyBinding
sourcefn clone(&self) -> KeyBinding
fn clone(&self) -> KeyBinding
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KeyBinding
impl Debug for KeyBinding
sourceimpl Display for KeyBinding
impl Display for KeyBinding
sourceimpl Hash for KeyBinding
impl Hash for KeyBinding
sourceimpl PartialEq<KeyBinding> for KeyBinding
impl PartialEq<KeyBinding> for KeyBinding
sourcefn eq(&self, other: &KeyBinding) -> bool
fn eq(&self, other: &KeyBinding) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KeyBinding) -> bool
fn ne(&self, other: &KeyBinding) -> bool
This method tests for !=
.
sourceimpl TryFrom<u32> for KeyBinding
impl TryFrom<u32> for KeyBinding
impl Copy for KeyBinding
impl Eq for KeyBinding
impl StructuralEq for KeyBinding
impl StructuralPartialEq for KeyBinding
Auto Trait Implementations
impl RefUnwindSafe for KeyBinding
impl Send for KeyBinding
impl Sync for KeyBinding
impl Unpin for KeyBinding
impl UnwindSafe for KeyBinding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more