Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printf before prompt run will cut long string #227

Open
LoyalPotato opened this issue Oct 30, 2023 · 0 comments
Open

Printf before prompt run will cut long string #227

LoyalPotato opened this issue Oct 30, 2023 · 0 comments

Comments

@LoyalPotato
Copy link

Hello,
I'm using v0.9.0 of promptui.

When calling fmt.Printf with a long string, before running the prompt it'll cut the output.
Here's an example of a call:

fmt.Printf("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Now replace -> %s in this terminal to see if this will get cut off or not... Nulla consequat odio sed sollicitudin posuere. ", "this is the replacement string")
prompt := promptui.Prompt{
		Label: "Label",
		Mask:  ' ',
		Templates: &promptui.PromptTemplates{
			Valid:   "Label",
			Success: " ",
		},
	}
input, err := prompt.Run()

Here's a print of how it looks.
replace → this is the repl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant