Pane.sendAndWaitFor
LibTmux.FSharp Sends keys as the request describes, then waits as the wait request describes.
Source and package
- Module
- LibTmux.FSharp
- Declared in
- Pane
- Package
- LibTmux.FSharp
- Source
- src/LibTmux.FSharp/Hierarchy.fsi
- F# value signatures Declares the name and type of a value or function in a signature. Language documentation sendAndWaitFor: cancellationToken: Cancellation
Token -> keys: SendKeys -> request: PaneRequest Wait -> pane: LibRequest Tmux -> Task<Pane.Pane Wait >Result -
Description#
As <c>sendAndWait</c>: only output after the keys counts, and literal text is discounted from it. Key names are not. Running out of time returns the outcome <c>TimedOut</c>; only <c>Mirror.waitUntil</c> raises instead.
- Parameters
-
-
cancellationToken ( Cancellation
Token ) -
keys ( Send
Keys )Request -
request ( Pane
Wait )Request -
pane ( Lib
Tmux ).Pane
-
- Raises
-
-
System
.Argument – The wait names no pattern.Exception -
Lib
Tmux – The pane's program had already exited, or the pane changed during every read until the timeout, so nothing was sent..Tmux Pane Exception -
Lib
Tmux – tmux no longer has the pane..Tmux Object Not Found Exception
-
Discussed in Getting started , Quick start