From 8e9f10023241dabd00a9555ade125f4913f041be Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Thu, 2 Mar 2000 03:31:41 +0000 Subject: Wed Mar 1 18:37:18 PST 2000 Michael Jennings 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 . I've also applied a bugfix for pty allocation on Irix from David Kaelbling , a display bugfix pointed out by Valdis Kletnieks , 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 --- src/command.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/command.c') 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 -- cgit v1.2.1