add bracketed paste mode (#922)

This commit is contained in:
Patrick Devine
2023-10-26 15:57:00 -07:00
committed by GitHub
parent 9bc5864a03
commit a79f030e75
3 changed files with 36 additions and 18 deletions

View File

@@ -553,6 +553,9 @@ func generateInteractive(cmd *cobra.Command, model string) error {
wordWrap = false
}
fmt.Print(readline.StartBracketedPaste)
defer fmt.Printf(readline.EndBracketedPaste)
var multiLineBuffer string
for {