Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Functions for simulating user input in tests.
Synopsis
- syntheticInput :: Members [Rpc, Time t d] r => Maybe NanoSeconds -> [Text] -> Sem r ()
- feedKey :: Member Rpc r => Text -> Sem r ()
- syntheticInputFk :: Members [Rpc, Time t d] r => Maybe NanoSeconds -> [Text] -> Sem r ()
- withInput :: Members [Rpc, Resource, Race, Async, Time t d] r => Maybe MilliSeconds -> Maybe MilliSeconds -> [Text] -> Sem r a -> Sem r a
Documentation
syntheticInput :: Members [Rpc, Time t d] r => Maybe NanoSeconds -> [Text] -> Sem r () Source #
Send a list of character sequences as user input to Neovim with an optional wait interval.
Uses nvim_input
.
feedKey :: Member Rpc r => Text -> Sem r () Source #
Send a sequence of keys using nvim_feedkeys
after replacing terminal codes.
syntheticInputFk :: Members [Rpc, Time t d] r => Maybe NanoSeconds -> [Text] -> Sem r () Source #
Send a list of character sequences as user input to Neovim with an optional wait interval.
Uses nvim_feedkeys
.