petereon / beaupy

A Python library of interactive CLI elements you have been looking for
https://petereon.github.io/beaupy/
MIT License
183 stars 13 forks source link

Can't paste on prompt #38

Closed arthur-trt closed 1 year ago

arthur-trt commented 1 year ago

Hello,

On version 2.1 (I didn't have the problem in 1.5), when I paste text in a prompt field the cursor moves only one character and only 32 characters are taken into account.

This script reproduce the error with beaupy v2.1.0

from beaupy import *
from pprint import pprint

test = prompt('This is a test')
pprint(test)
petereon commented 1 year ago

Hello Arthur, thank you for an issue. This will potentially not be fixed for a while as I am having troubles to find time for this, thus far I recommend using fixed 1.5 as 2> are migrated towards click which seems to be causing a lot of issues. I'll get back to you here when I start making progress for this.

petereon commented 1 year ago

Should be fixed by #40