petsrv PETSCII SERVER

What?

petsrv is a small http server that generates png images from the C64's rom font. It can be used to sprinkle web pages with petscii graphics, without having to use a graphics program or screen grabber to draw them.

Features

Demonstration

Play with the parameters and enter some text.

Foreground Background Font Zoom

Downloads

petsrv-b2.tar.gz, 9 kB.
Beta 2 source code.

Configuration

Exactly how you use petsrv depends on a few things like which server you're running and if you have a firewall. petsrv listens to port 8064 by default, and if you don't have a firewall or a NAT:ing router inbetween you and the rest of the world, you can just run it exposed on a public port. However, since on the fly generation of PNGs is somewhat costly, I recommend that you set up a caching proxy. If you're using Apache to serve your web pages and you run petsrv on the same machine, I've been told that something like this should do the trick:
  ProxyRequests Off
  ProxyPass /petscii http://localhost:8064/petscii
  ProxyPassReverse /petscii http://localhost:8064/petscii

Contact

You can contact me at magervalp@fastmail.fm.

License

petsrv is released under a BSD license:

Copyright (c) 2004, Per Olofsson
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.