Hi,<br><br>Here (attached) is another small lib to display tables in text format.<br>Sample output:<br><span style="font-family:courier new,monospace">╭────┬┬────────┬────╮</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">│i ││f1 │f2 │</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">├────┼┼────────┼────┤</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">├────┼┼────────┼────┤</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">│a ││b │c │</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">├────┼┼────────┼────┤</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">│x ││y │z │</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">╰────┴┴────────┴────╯</span><br><br>Unfortunately, my version of DrRacket displays one too many pixel.<br>If you enhance it, let me know ;)<br>
<br>Laurent<br><br><div class="gmail_quote">On Thu, May 10, 2012 at 5:31 AM, Ray Racine <span dir="ltr"><<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was forwarded a nice working sample from Grant Rettke. From a high level, just build a snip% and display it.<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Wed, May 9, 2012 at 10:14 PM, Ray Racine <span dir="ltr"><<a href="mailto:ray.racine@gmail.com" target="_blank">ray.racine@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Say I have a modestly complex set of data contained in a standard Racket structure, e.g. (struct: Data ([...])). I'd like to define some sort of specialized pretty print (visualization) capability to be used withing DrRacket at the REPL level.<div>
<br></div><div>So I'm working with some code in Dr Racket in the REPL.</div><div><br></div><div>> (define data (Data ....)) ;; create a structure of data</div><div><br></div><div>> (pretty-visualize data) ;; Either pops up some dialog with text/graphical visualization or is rendered by the REPL immediately below.</div>
<div>==================</div><div>| Text </div><div>| or 2-d Canvas </div><div>| rendering here.</div><div>|</div><div>|</div><div>==================</div><div><br></div><div>> |</div><div><br></div><div>Say something along the lines one can see in the Professional Tables here.</div>
<div><a href="http://en.wikibooks.org/wiki/LaTeX/Tables" target="_blank">http://en.wikibooks.org/wiki/LaTeX/Tables</a></div><div><br></div><div>I've been poking around in the DrRacket manual but haven't found any place to gain traction on something like this. Any pointers on here I should start reading?</div>
<div><br></div><div>Thanks in advance.</div><div><br></div>
</blockquote></div><br>
</div></div><br>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br>