diff options
author | Michael Jennings <mej@kainx.org> | 2000-03-02 03:31:41 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2000-03-02 03:31:41 +0000 |
commit | 8e9f10023241dabd00a9555ade125f4913f041be (patch) | |
tree | 084b7c39ae2e4b6a79ea6cc0b1fa8a2913834cdf /src/command.c | |
parent | d2ca8950e167f04e9530ce56fd6668fe9f3d171c (diff) | |
download | eterm-8e9f10023241dabd00a9555ade125f4913f041be.tar.gz |
Wed Mar 1 18:37:18 PST 2000 Michael Jennings <mej@eterm.org>
I'm still not done with the commenting work I've been doing, but I've
made some fixes, so I figured it was time to commit what I've done so
far.
I've added support for multi-byte selection/pastes from programs like
Netscape, thanks in part to a patch from Yasuyuki Furukawa
<yasu@on.cs.keio.ac.jp>. I've also applied a bugfix for pty
allocation on Irix from David Kaelbling <drk@sgi.com>, a display
bugfix pointed out by Valdis Kletnieks <Valdis.Kletnieks@vt.edu>, and
a fix for a missing menu in the auto theme discovered by someone on
IRC.
I've also added quite a few comments to term.c to help people grok
the parsing of escape sequences a little better.
SVN revision: 2168
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c index 65048d9..260b371 100644 --- a/src/command.c +++ b/src/command.c @@ -1134,10 +1134,11 @@ __inline__ int sgi_get_pty(void); __inline__ int sgi_get_pty(void) { - int fd = -1; + privileges(INVOKE); ptydev = ttydev = _getpty(&fd, O_RDWR | O_NDELAY, 0620, 0); + privileges(REVERT); return (ptydev == NULL ? -1 : fd); } @@ -2503,6 +2504,13 @@ cmd_getc(void) return (0); } +/* Put a character back in the buffer. Only use this once at a time. */ +void +cmd_ungetc(void) +{ + cmdbuf_ptr--; +} + /* tt_write(), tt_printf() - output to command */ /* * Send count characters directly to the command |