From: Kris Maglione <bsdaemon@comcast.net>
To: 9fans@cse.psu.edu
Subject: [9fans] Page ported to plan9port
Date: Thu, 8 Feb 2007 18:10:23 -0500 [thread overview]
Message-ID: <20070208231022.GR30291@fw.home> (raw)
Hi,
I've ported page(1) to plan9port. Since the default ghostscript on most
systems doesn't support plan9 bitmaps, I have it output windows bitmaps
and pipe them through bmp(1) (messing with ghostscript isn't worth the
trouble, unless Russ wants to pester them to put it into the default
distro).
You can get it here: http://suckless.org/~jg/page.tgz
There are a few things that aren't as well as I'd like:
1. I switched to libthread, but I still have to fork/exec for gs,
because it needs 5 file descriptors, and threadspawnl allows only 3. I
looked at the threadspawnl code, and it forks/execs itself, and I
haven't had any issues.
2. To get the screen size, I used an ugly hack of spawning "xdpyinfo |
grep dimensions:" and parsing it. I'd like to know if libdraw provides
another way to get these.
3. There are some conversion commands which specify programs in fb/,
which exists neither on plan 9, nor in p9p. Does anyone know what/where
they were?
next reply other threads:[~2007-02-08 23:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-08 23:10 Kris Maglione [this message]
2007-02-08 23:29 ` erik quanstrom
2007-02-09 2:58 ` Russ Cox
2007-02-09 9:24 ` Charles Forsyth
2007-02-09 16:44 ` Kris Maglione
2007-02-09 17:21 ` Russ Cox
2007-02-09 17:32 ` Kris Maglione
2007-02-09 17:52 ` Russ Cox
2007-02-09 18:09 ` Kris Maglione
2007-03-26 20:57 ` Russ Cox
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=20070208231022.GR30291@fw.home \
--to=bsdaemon@comcast.net \
--cc=9fans@cse.psu.edu \
/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).