getChar -package:gi-glib

Read a single character from the standard input device. getChar is implemented as hGetChar stdin. This operation may fail with the same errors as hGetChar.

Examples

>>> getChar
a'a'
>>> getChar
>
'\n'
Read a character from the standard input device (same as hGetChar stdin).
Read a character from stdin Uses system locale settings
Read one character from a file
The simplest input: keypresses. Nice for testing.
Get the charset from a mime type, if one is present.
select the value of a char reference
Get the value of the “from-charset” property. When overloading is enabled, this is equivalent to
get charsetConverter #fromCharset
Get the value of the “to-charset” property. When overloading is enabled, this is equivalent to
get charsetConverter #toCharset
Get the value of the “use-fallback” property. When overloading is enabled, this is equivalent to
get charsetConverter #useFallback
Retrive the glyph contours and associated transformations. The coordinate system is assumed to be the TTF one (y upward). No transformation is performed.