Struct libnotcurses_sys::NcKey[][src]

pub struct NcKey(pub u32);
Expand description

Synthesized input events (any input event we can report that isn’t representative of some Unicode).

This covers both keyboard and mouse events, as well as signals and even window events.

Rather than using one of the Private Use Areas of Unicode, we use the area beyond the 17 65536-entry Planes (1114112).

We round up to 5000 so that it’s trivial to identify synthesized characters. based on their numeric definition here.

This is safe, since we needn’t convert these synthesized characters into UTF8 (they would otherwise require more than four bytes).

Tuple Fields

0: u32

Implementations

Checks whether a number falls in the range of synthesized events.

Returns a new NcKey if the provided number falls in the correct range.

Returns the name of the current NcKey.

Returns the name of the NcKey the number would be.

Rather than using one of the Private Use Areas of Unicode, we use the area beyond the 17 65536-entry Planes (1114112).

We round up to 5000 so that it’s trivial to identify synthesized characters based on their numeric definition here.

This is safe, since we needn’t convert these synthesized characters into UTF8 (they would otherwise require more than four bytes).

we received SIGWINCH

backspace (sometimes)

“clear-screen or erase”

down + left on keypad

up + left on keypad

the most truly neutral of keypresses

scrollwheel up

scrollwheel down

we received SIGCONT

Will be returned upon reaching the end of input.

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

Performs the conversion.

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

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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

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.