From: John Floren <slawmaster@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Unix Weenie Newsreader
Date: Wed, 5 Aug 2009 18:22:55 -0700 [thread overview]
Message-ID: <7d3530220908051822y382be404lf1bd8353e76c4d4f@mail.gmail.com> (raw)
In-Reply-To: <7d3530220907281119r75734c9boa41d391fd6ebd58f@mail.gmail.com>
On Tue, Jul 28, 2009 at 11:19 AM, John Floren<slawmaster@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
prev parent reply other threads:[~2009-08-06 1:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-28 18:19 John Floren
2009-07-28 23:52 ` Corey
2009-07-28 23:53 ` J.R. Mauro
2009-08-06 1:22 ` John Floren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7d3530220908051822y382be404lf1bd8353e76c4d4f@mail.gmail.com \
--to=slawmaster@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).