开发者

Is there a libraray/method for 80 column formatted text output? [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 1 year ago.

开发者_开发知识库 Improve this question

Here is what I'm looking for.

I'd like to find a library or method that formats output text, such that it word wraps at 80 columns (or user configurable), and allows user defined indentation.

I know that I could create one, but I suspect that there is already a library available that does this. I've googled around and I've found pages for iomanip -- which gave me ideas for creating my own.

I've done a cursory search through the boost libraries, but I didn't really find anything that quite matched.


Here it is, search harder next time ;)

2.2.4. Line-Wrapping Filters

http://www.boost.org/doc/libs/1_47_0/libs/iostreams/doc/tutorial/line_wrapping_filters.html


If you're on a POSIX platform, you could look at ncurses or termcap and see if they will accomplish what you need.


https://github.com/catchorg/textflowcpp is probably the best way to do this nowadays.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜