aegirhall / console-menu

A simple Python menu system for building terminal user interfaces.
MIT License
366 stars 58 forks source link

Handle colours in menu item names #45

Closed mon closed 2 years ago

mon commented 4 years ago

By utilising the lovely ansiwrap library to add extra "invisible" padding, colours in item names no longer mess up the vertical alignment of the borders. Before: image After: image

MoralCode commented 2 years ago

This might conflict with #62 since that PR also involves using textwrap.

Also your commit for handling EOF may also be adaptable to cover #55