multiline

package
v2026.925.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const BracketedPasteDisable = "\x1b[?2004l"
View Source
const BracketedPasteEnable = "\x1b[?2004h"
View Source
const MouseReportDisable = "\x1b[?1000l\x1b[?1002l\x1b[?1003l\x1b[?1006l"
View Source
const PasteImageKey byte = 22

Variables

This section is empty.

Functions

func EditorStdout added in v2026.608.1

func EditorStdout(fallback io.Writer) io.Writer

func EditorUsesRawStdout added in v2026.608.1

func EditorUsesRawStdout() bool

func EnableReplInputModes

func EnableReplInputModes(w io.Writer) func()

func EnsureCookedFD added in v2026.621.0

func EnsureCookedFD(fd int)

func EnsureCookedTTY added in v2026.609.0

func EnsureCookedTTY()

func EnterCbreakFD added in v2026.621.0

func EnterCbreakFD(fd int) (restore func(), err error)

func EnterRawStdin added in v2026.609.0

func EnterRawStdin() (restore func(), err error)

func FlushStdin added in v2026.609.2

func FlushStdin()

func NewMultilineStdin

func NewMultilineStdin(inner stdinReadCloser) io.ReadCloser

func ParseMultilineControlRunes

func ParseMultilineControlRunes(s string) (clean string, softBreak bool)

func PlatformStdin

func PlatformStdin() stdinReadCloser

func PrepareConsoleInput

func PrepareConsoleInput() func()

func PrepareConsoleOutput added in v2026.608.1

func PrepareConsoleOutput() func()

func SetReplImagePaste

func SetReplImagePaste(fn func() (string, bool))

func TrimMessageEdges

func TrimMessageEdges(s string) string

func WriteTerminalModeSequences

func WriteTerminalModeSequences(seq string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL