From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 8 Feb 2007 18:10:23 -0500 From: Kris Maglione To: 9fans@cse.psu.edu Message-ID: <20070208231022.GR30291@fw.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Subject: [9fans] Page ported to plan9port Topicbox-Message-UUID: 0f578eda-ead2-11e9-9d60-3106f5b1d025 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?