9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "rob pike" <rob@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] pipefile
Date: Wed,  2 Aug 2000 17:19:35 -0400	[thread overview]
Message-ID: <200008022119.RAA07806@cse.psu.edu> (raw)

> I think he was thinking of the v2 edition where, with ktrans, you
> could hit a ctrl seq and switch into different modes.  I assume that
> functionality was always part of ktrans itself, in other words after it's
> started it is always running and handles whether or not to do translation.

I thought the problem was not how to implement the translation, but
how to inject it into the input stream.  Thus I wrote pipefile, with
the belief that someone would write the obvious bytestream converter,
with or without modes, that would convert a standard keyboard into
some other style of input.

With pipefile, you can add any translation you want to /dev/cons.
The program you write - the argument to -r - can do anything it
wants, including switching between languages.  Unlike with /dev/kbd,
the mode won't be per window if you start it under rio, but you can
start it in each window instead, if that's really what you want.

/dev/kbd may seem more natural, but the idea that an arbitrary
program can wake up at any time and inject characters into my
input stream is too distasteful for me.  That's why I didn't put
/dev/kbd into rio, hoping something better (or at least safer)
would come along.

Pipefile may not be as convenient, but it's much safer because you
must explicitly create the process; there's nothing like /dev/kbd
hanging around ready to receive random characters.

-rob



             reply	other threads:[~2000-08-02 21:19 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-02 21:19 rob pike [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-08-03 23:46 okamoto
2000-08-03  4:49 rob pike
2000-08-03  4:15 okamoto
2000-08-03  3:44 okamoto
2000-08-03  7:14 ` Matt
2000-08-03  3:19 okamoto
2000-08-03  0:19 okamoto
     [not found] <rob@plan9.bell-labs.com>
2000-08-02 14:48 ` rob pike
2000-08-02 15:49   ` James A. Robinson
2000-08-02  7:55 okamoto
2000-08-03  8:21 ` Boyd Roberts
2000-07-31  9:47 okamoto
2000-07-31  4:55 rob pike
2000-07-31  4:40 okamoto
2000-07-31  1:14 rob pike
2000-08-02  3:40 ` Skip Tavakkolian
2000-08-03  1:21   ` Skip Tavakkolian
2000-07-30 23:46 Steve Harris
2000-07-30 23:17 rob pike
2000-07-30 23:06 rob pike
2000-07-30 22:38 Steve Harris
2000-07-30 19:54 rob pike

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=200008022119.RAA07806@cse.psu.edu \
    --to=rob@plan9.bell-labs.com \
    --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).