Skip to content

x/term: multi line bracketed paste fails to issue line by line commands. #74600

Open
golang/term
#21
@ldemailly

Description

@ldemailly

Go version

golang.org/.x/term v0.33.0

Output of go env in your module/workspace:

n/a

What did you do?

t := term.NewTerminal(rw, "Test> ")
line, err := t.ReadLine()

paste multiple line

line one
line two
line three

complete code: https://github.com/ldemailly/go-scratch/blob/main/ghostty_issue/main.go

What did you see happen?

Test> line one
              line two
                      line three

What did you expect to see?

Test> line one
Received line: "line one"
Paste indicator received.
Test> line two
Received line: "line two"
Paste indicator received.
Test> line three
Received line: "line three"
Paste indicator received.
Test> 

I have the fix coming

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixPendingIssues that have a fix which has not yet been reviewed or submitted.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions