| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Simplex.Chat.Terminal.Output
Documentation
data ChatTerminal Source #
Constructors
| ChatTerminal | |
Fields
| |
data TerminalState Source #
Constructors
| TerminalState | |
Fields
| |
data ACShowVariants Source #
Instances
| Enum ACShowVariants Source # | |
Defined in Simplex.Chat.Terminal.Output Methods succ :: ACShowVariants -> ACShowVariants pred :: ACShowVariants -> ACShowVariants toEnum :: Int -> ACShowVariants fromEnum :: ACShowVariants -> Int enumFrom :: ACShowVariants -> [ACShowVariants] enumFromThen :: ACShowVariants -> ACShowVariants -> [ACShowVariants] enumFromTo :: ACShowVariants -> ACShowVariants -> [ACShowVariants] enumFromThenTo :: ACShowVariants -> ACShowVariants -> ACShowVariants -> [ACShowVariants] | |
| Eq ACShowVariants Source # | |
Defined in Simplex.Chat.Terminal.Output Methods (==) :: ACShowVariants -> ACShowVariants -> Bool (/=) :: ACShowVariants -> ACShowVariants -> Bool | |
data AutoCompleteState Source #
Constructors
| ACState | |
Fields
| |
data LiveMessage Source #
Constructors
| LiveMessage | |
Fields
| |
class Terminal t => WithTerminal t where Source #
Instances
| WithTerminal LocalTerminal Source # | |
Defined in Simplex.Chat.Terminal.Output | |
| WithTerminal VirtualTerminal Source # | |
Defined in Simplex.Chat.Terminal.Output | |
data TerminalDevice Source #
Constructors
| WithTerminal t => TerminalDevice t |
withChatTerm :: (MonadIO m, MonadMask m) => ChatTerminal -> (forall t. WithTerminal t => TerminalT t m a) -> m a Source #
newChatTerminal :: WithTerminal t => t -> ChatOpts -> IO ChatTerminal Source #
withTermLock :: MonadTerminal m => ChatTerminal -> m () -> m () Source #
runTerminalOutput :: ChatTerminal -> ChatController -> ChatOpts -> IO () Source #
chatEventNotification :: ChatTerminal -> ChatController -> ChatEvent -> IO () Source #
msgText :: MsgContent -> Maybe MarkdownList -> Text Source #
chatActiveTo :: ChatName -> String Source #
chatInfoActiveTo :: forall (c :: ChatType). ChatInfo c -> String Source #
contactActiveTo :: Contact -> String Source #
groupActiveTo :: GroupInfo -> String Source #
setActiveChat :: forall (c :: ChatType). ChatTerminal -> ChatInfo c -> IO () Source #
setActiveContact :: ChatTerminal -> Contact -> IO () Source #
setActiveGroup :: ChatTerminal -> GroupInfo -> IO () Source #
setActive :: ChatTerminal -> String -> IO () Source #
unsetActiveContact :: ChatTerminal -> Contact -> IO () Source #
unsetActiveGroup :: ChatTerminal -> GroupInfo -> IO () Source #
unsetActive :: ChatTerminal -> String -> IO () Source #
whenCurrUser :: ChatController -> User -> IO () -> IO () Source #
printRespToTerminal :: ChatTerminal -> ChatController -> Bool -> Maybe RemoteHostId -> Either ChatError ChatResponse -> IO () Source #
responseString :: ChatResponseEvent r => ChatTerminal -> ChatController -> Bool -> Maybe RemoteHostId -> Either ChatError r -> IO [StyledString] Source #
updateRemoteUser :: ChatTerminal -> User -> RemoteHostId -> IO () Source #
getCurrentUser :: ChatTerminal -> ChatController -> IO (Maybe RemoteHostId, Maybe User) Source #
printToTerminal :: ChatTerminal -> [StyledString] -> IO () Source #
updateInputView :: ChatTerminal -> IO () Source #
updateInput :: MonadTerminal m => ChatTerminal -> m () Source #
printMessage :: MonadTerminal m => ChatTerminal -> [StyledString] -> m () Source #
putStyled :: MonadTerminal m => StyledString -> m () Source #