Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- noBuffering :: IO ()
- restoreBuffering :: IO ()
- noEcho :: IO ()
- restoreEcho :: IO ()
- clearLines :: Int -> IO ()
- map' :: (Int -> a -> b) -> [a] -> [b]
- filter' :: Eq a => (Int -> a -> Bool) -> [a] -> [a]
- getKey :: IO String
- flush :: IO ()
- getOptionsMeta :: Options -> (Int, Int, Maybe Int)
- stringsToOptions :: [String] -> Options
- focusOption :: Int -> Options -> Options
- toggleFocusedOption :: Int -> Options -> Options
- toCommaSeparatedString :: [String] -> String
- getOptionValue :: Option -> String
- getOptionIsFocused :: Option -> Bool
- getOptionIsSelected :: Option -> Bool
- getFocusedOptionIndex :: Options -> Maybe Int
- getSelecteOptionsIndexes :: Options -> [Int]
Documentation
noBuffering :: IO () Source #
Disable the stdin stdout output buffering
restoreBuffering :: IO () Source #
Enaable the stdin stdout buffering
restoreEcho :: IO () Source #
Restore the user input echos
clearLines :: Int -> IO () Source #
Clear terminal lines from the current cursor position
getOptionsMeta :: Options -> (Int, Int, Maybe Int) Source #
Get useful informations from the options collection, like minVal, maxVal, activeIndex
stringsToOptions :: [String] -> Options Source #
Convert a string array to
focusOption :: Int -> Options -> Options Source #
Give the focus to a single option in the collection
toggleFocusedOption :: Int -> Options -> Options Source #
Toggle the isSelected flag for a single option
toCommaSeparatedString :: [String] -> String Source #
Print a list to comma separated
getOptionValue :: Option -> String Source #
Get the value of any option
getOptionIsFocused :: Option -> Bool Source #
Get the is focused attribute of any option
getOptionIsSelected :: Option -> Bool Source #
Get the is selected attribute of any option
getSelecteOptionsIndexes :: Options -> [Int] Source #
Filter the indexes of the options selected