[Mono-list] text tables

rus rus at forgecom.co.uk
Thu Oct 27 10:28:26 EDT 2005


Hi all

Bit of an odd request here, but I thought I'd give it a try...

I need to create a table (think HTML table) but in plain text (80 chars
wide), add some columns, add some rows of data, and capture the whole
table into a string.

So I end up with something that looks a bit like this:

=====================
|  col 1  |  col 2  |
=====================
|  foo    |  bar    |
|  blah   |  blah   |
=====================


The old ncurses library springs to mind, but I have no real experience
using it, so I don't know if it could be used for this, or how I would
use it from within mono/ms.NET
Whichever solution I use also needs to work on ms.NET :-s


Does anyone know of a neat way of doing this? Or some kind of library or
component I can use?


Cheers in advance



-- 
------------------------------------------------------------
  _        _    Web Developer - Forgecom Web Applications   
|/  |   | (     rus at forgecom.co.uk                          
|    \_/| _)    --------------------------------------------

If you can't be a good example, then you'll just have to be 
a horrible warning.
------------------------------------------------------------




More information about the Mono-list mailing list