haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Arch.Linux.Terminal

Description

This module provides some functions to use Linux terminals

Synopsis

Documentation

stdin :: Handle Source #

Standard input (by convention)

stdout :: Handle Source #

Standard output (by convention)

stderr :: Handle Source #

Standard error output (by convention)

writeStr :: MonadInIO m => Handle -> String -> Flow m '[(), ErrorCode] Source #

Write a String in the given file descriptor

writeStrLn :: MonadInIO m => Handle -> String -> Flow m '[(), ErrorCode] Source #

Write a String with a newline character in the given file descriptor

readChar :: MonadInIO m => Handle -> Flow m (Char ': ReadErrors') Source #

Read a single character

Warning: only the first byte of multi-byte characters (e.g. utf8) will be read