Remix.run Logo
faangguyindia 9 hours ago

I used Rich library in python. And it was recommended to me by claude as top tui library in python space.

It can't handle terminal window resize and the layout gets messed up

I was surprised to see node based cli work much better with resize?

Anyone knows why?

faangguyindia 28 minutes ago | parent [-]

I knew very few people actually know this, and this why I posted it.

Most products in terminal these days use widget tree or virtual dom.

Things like aider use prompt toolkit and loses the layout when you resize window. Because the screen is printed on each change with diffing, upon resize there is no issue when you use stuff like ink or textual library in python.