9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "James A. Robinson" <jim.robinson@stanford.edu>
To: Colin DeVilbiss <crdevilb@mtu.edu>, 9fans@cse.psu.edu
Subject: Re: [9fans] 9term?
Date: Wed, 19 Jul 2000 20:23:03 -0700	[thread overview]
Message-ID: <200007200323.XAA26912@cse.psu.edu> (raw)
In-Reply-To: Message from Colin DeVilbiss <crdevilb@mtu.edu>  of "Wed, 19 Jul 2000 22:14:57 EDT."References: <20000719221456.A27835@000pri069.bresnanlink.net>  <20000719221456.A27835@000pri069.bresnanlink.net>

> any help or pointers to updated source or anything of the sort would be
> much appreciated.

Get the source from the Debian folks. They maintain a version that
compiles (with lots of warnings, but it works).  As I recall, the only
stuff I had to change was to muck about with pty.c. The messy stuff was
dealing with the ttmode flags (gawd that code is UGLY):

/*
 *	Get the original modes from a (pseudo)-tty.
 *	Supply a default value if we can't.
 */
void
gttymodes(int fd)
{
	modenames *mp;

 #ifdef LINUX
        ttmode.c_iflag = (BRKINT | IGNPAR | ICRNL | IXON);
        ttmode.c_oflag = (OPOST | ONLRET);
        /*ttmode.c_cflag = (B9600 | PARENB | CS8 | CREAD);*/
        ttmode.c_cflag = (B9600 | CS8 | CREAD);
        ttmode.c_lflag = (ISIG | ICANON | ECHO | ECHOK);
 #else

Ugh.


  reply	other threads:[~2000-07-20  3:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-20  2:14 Colin DeVilbiss
2000-07-20  3:23 ` James A. Robinson [this message]
2000-07-20  3:28 ` Boyd Roberts
2000-07-20  6:58 ` Richard
2000-07-20  7:23 forsyth
2000-07-20 14:25 ` Richard
2000-07-20  7:44 forsyth
2000-07-20  8:14 ` Lucio De Re
2000-07-20 14:10   ` arisawa
2000-07-20 15:06     ` arisawa
2000-07-20 14:26   ` Richard

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=200007200323.XAA26912@cse.psu.edu \
    --to=jim.robinson@stanford.edu \
    --cc=9fans@cse.psu.edu \
    --cc=crdevilb@mtu.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).