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'
hedgehog Hedgehog.Internal.Prelude,
base-compat Prelude.Compat,
base-prelude BasePrelude,
numeric-prelude NumericPrelude NumericPrelude.Base,
Cabal-syntax Distribution.Compat.Prelude,
ihaskell IHaskellPrelude,
numhask NumHask.Prelude,
ghc-lib-parser GHC.Prelude.Basic,
prelude-compat Prelude2010,
pathtype System.Path.IO,
dimensional Numeric.Units.Dimensional.Prelude,
rebase Rebase.Prelude,
mixed-types-num Numeric.MixedTypes.PreludeHiding,
xmonad-contrib XMonad.Config.Prime,
constrained-categories Control.Category.Constrained.Prelude Control.Category.Hask,
copilot-language Copilot.Language.Prelude,
LambdaHack Game.LambdaHack.Core.Prelude,
cabal-install-solver Distribution.Solver.Compat.Prelude,
faktory Faktory.Prelude,
vcr Imports,
yesod-paginator Yesod.Paginator.Prelude,
distribution-opensuse OpenSuse.Prelude,
hledger-web Hledger.Web.Import,
termonad Termonad.Prelude 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.