Documentation

TermColor.Terminal.Input

TermColor.Terminal.Input #

Pure decoding plus the small raw-input boundary used by interactive TUI applications.

Instances For
    Equations
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            Instances For
              Equations
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    Instances For
                      Equations
                      Instances For
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            Instances For
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                One byte-level input result, including the raw terminal's timeout boundary.

                                Instances For
                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    @[reducible, inline]

                                    An effectful byte source suitable for terminal input adapters.

                                    Equations
                                    Instances For

                                      Decode one complete terminal key sequence.

                                      Equations
                                      Instances For

                                        Decode an SGR (1006) mouse sequence. Coordinates are one-based, like the protocol.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For

                                          Decode either a complete key sequence or a complete SGR mouse event.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            Return the first hit region for a left-button press; releases and wheels are ignored.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For

                                              Hit-test a mouse event against the frame currently owned by a screen.

                                              Equations
                                              Instances For
                                                def TermColor.Terminal.moveFocus (count current : Nat) (key : Widgets.Key) :

                                                Move through an ordered set of focus slots, wrapping at either end.

                                                Equations
                                                Instances For
                                                  def TermColor.Terminal.withRawInput {α : Type} (action : IO α) :
                                                  IO α

                                                  Run an action with character-at-a-time terminal input, restoring the prior mode afterward.

                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For
                                                    partial def TermColor.Terminal.readEventFrom {m : Type → Type} [Monad m] (readByte : m ByteRead) (keepGoing : m Bool) :

                                                    Decode one event from an injectable byte source.

                                                    Read one complete terminal event while a caller-owned condition holds.

                                                    Equations
                                                    Instances For

                                                      Read one complete key or mouse event, waiting through raw-input timeouts.

                                                      Equations
                                                      Instances For

                                                        Read one ASCII terminal key, including the common arrow-key escape sequences.

                                                        Equations
                                                        Instances For