blessed icon indicating copy to clipboard operation
blessed copied to clipboard

infinite loop in Terminal.wrap

Open grayjk opened this issue 1 year ago • 1 comments

Using blessed 1.20.0 and wcwidth 0.2.13, the following code enters an infinite loop:

import blessed
blessed.Terminal().wrap('\u5973', 1)

grayjk avatar Jun 20 '24 17:06 grayjk

Thank you!

I'm working through it, in the meantime the workaround is to set break_long_words=False,

import blessed
blessed.Terminal().wrap('\u5973', 1, break_long_words=False)

jquast avatar Jun 20 '24 17:06 jquast