getChar

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
Obtains the character set for the [current locale][setlocale]; you might use this character set as an argument to convert, to convert from the current locale's encoding to some other encoding. (Frequently localeToUtf8 and localeFromUtf8 are nice shortcuts, though.) On Windows the character set returned by this function is the so-called system default ANSI code-page. That is the character set used by the "narrow" versions of C library and Win32 functions that handle file names. It might be different from the character set used by the C library's current locale. On Linux, the character set is found by consulting nl_langinfo() if available. If not, the environment variables LC_ALL, LC_CTYPE, LANG and CHARSET are queried in order. nl_langinfo() returns the C locale if no locale has been loaded by setlocale(). The return value is True if the locale's encoding is UTF-8, in that case you can perhaps avoid calling convert. The string returned in charset is not allocated, and should not be freed.
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.