Re: [BRLTTY] BrlAPI for Haskell

2022-02-10 Thread Samuel Thibault
Hello, Mario Lang, le ven. 11 févr. 2022 02:30:16 +0100, a ecrit: > Working on a Haskell binding for BrlAPI. Nice :D > The following example works: \o/ > I think it would be better to have a > different type of handle for ttyMode operations. IOW, return some > handle from enterTtyMode and

[BRLTTY] BrlAPI for Haskell

2022-02-10 Thread Mario Lang
Hi. Working on a Haskell binding for BrlAPI. The following example works: module Main where import Control.Monad (void) import BrlAPI main :: IO () main = withConnection "" ":0" $ \c -> do dn <- getDriverName c mi <- getModelIdentifier c (x, _) <- getDisplaySize c withTty c (Just 5)