9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Marshall Conover <marzhall.o@gmail.com>
To: "9fans@9fans.net" <9fans@9fans.net>
Subject: [9fans] The correct way to do an incorrect thing
Date: Wed, 28 Sep 2016 23:07:26 +0000	[thread overview]
Message-ID: <CAK0pxsHc+dmQj6OyK-gkTGDjrY8r3F8pWzMosC4vwZVaW7ZZgg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 750 bytes --]

Hi all!

As an awful person, I hacked rio's data.c to support backgrounds. Because
the default code took a 1-by-1 pixel grey image and tiled it, I just shoved
a line in there to load an image file instead using readimage(). (Hacked
really is the appropriate word here.)

My question is, would the plan9 approach to this (assuming this were a plan
9 thing to do in the first place) be to add a command line argument to rio
that lets the user specify a file, or would it be to present some file
somewhere the user can write a background to? E.g., `cat
/usr/glenda/backgrounds/bg.bit > /rio/bg`.

If there are any papers or man pages that'd be good to read for this
question, I'd appreciate a finger in that direction.

Thanks!

mars

[-- Attachment #2: Type: text/html, Size: 857 bytes --]

             reply	other threads:[~2016-09-28 23:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-28 23:07 Marshall Conover [this message]
2016-09-28 23:58 ` Erik Quanstrom
2016-09-29  7:48   ` hiro
2016-09-29  7:54     ` Harri Haataja

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=CAK0pxsHc+dmQj6OyK-gkTGDjrY8r3F8pWzMosC4vwZVaW7ZZgg@mail.gmail.com \
    --to=marzhall.o@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).