Enum yacurses::CursesKey [−][src]
The types of input keys that ncurses
can generate.
Variants
Ascii(u8)
An ascii input (most all the keys with symbols on them).
The terminal was resized.
yacurses
will fix things on the curses side when this happens, but you
should update anything on your side of the equation.
Enter key
Backspace key
Arrow upward (arrow key or numpad without numlock)
Arrow downward (arrow key or numpad without numlock)
Arrow left (arrow key or numpad without numlock)
Arrow right (arrow key or numpad without numlock)
Insert key
Delete key
Home key (or numpad 7 without numlock on)
End key (or numpad 1 without numlock on)
Page up / Previous Page (or numpad 9 without numlock on)
Page down / Next Page (or numpad 3 without numlock on)
The middle key of the numpad if numlock isn’t on.
Function(u8)
A function key (F1, F2, etc.).
These aren’t the best supported because the terminal emulator often eat them before the program sees it.
UnknownKey(u32)
Some unknown input value.
You might want to file an issue to get this value included.
Implementations
impl CursesKey
[src]
pub const fn from_ascii(ascii: u8) -> Self
[src]
Convert a byte into a CursesKey::Ascii(byte)
Trait Implementations
impl Clone for CursesKey
[src]
impl Copy for CursesKey
[src]
impl Debug for CursesKey
[src]
impl Eq for CursesKey
[src]
impl PartialEq<CursesKey> for CursesKey
[src]
impl StructuralEq for CursesKey
[src]
impl StructuralPartialEq for CursesKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for CursesKey
impl Send for CursesKey
impl Sync for CursesKey
impl Unpin for CursesKey
impl UnwindSafe for CursesKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,