cinput

Function cinput 

Source
pub unsafe extern "C" fn cinput(
    buffer: *mut c_uchar,
    buflen: c_uchar,
    flags: c_uchar,
) -> c_uchar
Expand description

\m65libsummary{cinput}{Get input from keyboard, printing incoming characters at current position.} \m65libsyntax {unsigned char cinput(char* buffer, unsigned char buflen, unsigned char flags)} \m65libparam {buffer}{Target character buffer preallocated by caller} \m65libparam {buflen}{Target buffer length in characters, including the null character terminator} \m65libparam {flags}{Flags for input: (default is accept all printable characters) %< \texttt{CINPUT_ACCEPT_NUMERIC} \ Accepts numeric characters. \ \ \texttt{CINPUT_ACCEPT_LETTER} \ Accepts letters. \ \ \texttt{CINPUT_ACCEPT_SYM} \ Accepts symbols. \ \ \texttt{CINPUT_ACCEPT_ALL}\ Accepts all. Equals to \texttt{CINPUT_ACCEPT_NUMERIC \textbar CINPUT_ACCEPT_LETTER \textbar CINPUT_ACCEPT_SYM} \ \ \texttt{CINPUT_ACCEPT_ALPHA} \ Accepts alphanumeric characters. Equals to \texttt{CINPUT_ACCEPT_NUMERIC \textbar CINPUT_ACCEPT_LETTER} \ \ \texttt{CINPUT_NO_AUTOTRANSLATE}\ Disables the feature that makes cinput to autodisplay uppercase characters when standard lowercase character set is selected and the user enters letters without the SHIFT key, that would display graphic characters instead of alphabetic ones. \ %>}

\m65libretval {Count of successfully read characters in buffer}