TheFriendlyCoder / friendlyshell

Framework for writing interactive Python command line interfaces, similar to the 'cmd' built in class.
Apache License 2.0
0 stars 0 forks source link

Add support for wrapping lengthy text to help mixin #67

Closed TheFriendlyCoder closed 6 years ago

TheFriendlyCoder commented 6 years ago

Currently the help mixin class assumes that the output produced by derived classes for generating online will be relatively short and easily represented on a text display. However, this may not always be the case. As such I think it'd be good to wrap text to a default with - say 80 characters - to prevent weird line overflows and console wrapping.

The implementation should allow this default wrap width to be overloaded as well for flexibility.