On Tue, Jul 28, 2009 at 11:19 AM, John Floren<slawmas...@gmail.com> wrote:
> Ever wish you had more GUI programs on Plan 9 to show off to your
> friends? Do you think Mothra represents the very pinnacle of UI
> design? Then have I got a program for you...
>
> I've spent the last day or so whipping up a quick libpanel application
> to read USENET via nntpfs. You can read newsgroups (not threaded, yet)
> and post messages (no followups yet), all from the comfort of a
> program that wouldn't look too out of place in any fashionable UNIX
> establishment. Screenshots at
> http://csplan9.rit.edu/users/john/uwn.png
>
> The source is available in /n/sources/contrib/john/uwn.tgz
>
>
> John

To follow up: You can now follow up. I've added "reply" functionality,
fixing what I think was a bug in libpanel in the process. The latest
version, yet again, is in /n/sources/contrib/john/uwn.tgz. The
interactions between the reader and the writer are really bad, I need
to work on that, but I thought I'd send this first.

The possible bug was that setting up a pledit(panel, PACKE|EXPAND,
Pt(0,0), inittxt, runestrlen(inittxt), 0); would cause the writer when
replying if the message being quoted came to over 100 characters long.
Some experimentation later, I changed line 64 of libpanel/textwin.c
from
if (l>t->eloc-t->loc) {
to
if (l>=(t->eloc-t->loc)) {

which seemed to fix the problem. If it wasn't a bug and I was merely
calling the pledit function wrong, please let me know.


John
-- 
"Object-oriented design is the roman numerals of computing" -- Rob Pike

Reply via email to