Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Term
- mkTerm :: (Int, Int) -> Term
- termAttrs :: Lens' Term Attrs
- cursorPos :: Lens' Term (Int, Int)
- cursorState :: Lens' Term CursorState
- modeWrap :: Lens' Term Bool
- insertMode :: Lens' Term Bool
- altScreenActive :: Lens' Term Bool
- numCols :: Lens' Term Int
- numRows :: Lens' Term Int
- keyboardState :: Lens' Term KeyboardState
- scrollTop :: Lens' Term Int
- scrollBottom :: Lens' Term Int
- scrollBackLines :: Lens' Term TermLines
- numScrollBackLines :: Lens' Term Int
- termScreen :: Lens' Term TermLines
- termAlt :: Lens' Term TermLines
- windowTitle :: Lens' Term Text
- wrapNext :: Lens' CursorState Bool
- origin :: Lens' CursorState Bool
- cursorLine :: Lens' Term TermLine
- activeScreen :: Lens' Term TermLines
- addScrollBackLines :: TermLines -> Term -> Term
- vuIndex :: Unbox a => Int -> Lens' (Vector a) a
- termGetKeyboardState :: Term -> KeyboardState
Types
mkTerm :: (Int, Int) -> Term Source #
Create a new blank Terminal with the given size (width, height)
Direct Term
Lenses
cursorPos :: Lens' Term (Int, Int) Source #
Cursor line is always in the range [0..numRows-1]
Cursor col is always in the range [0..numCols-1]
cursorState :: Lens' Term CursorState Source #
Direct CursorState
Lenses
Helper Term
Lenses
activeScreen :: Lens' Term TermLines Source #
Either the main screen or the alternate screen (depending on which is active)