unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Opening a pty without a process
@ 2007-10-05 20:46 Nick Roberts
  2007-11-26 20:27 ` Nick Roberts
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Roberts @ 2007-10-05 20:46 UTC (permalink / raw)
  To: emacs-devel


I would like to associate a buffer with a pty without a process.  How easy
would it be able to adapt start-process to do this when given a nil value
for program name:

(start-process name buffer nil) or (start-process name buffer)

Perhaps a new function would be better because I would like it to return the
name of the pty, e.g,

(open-pty-buffer buffer)
->"/dev/pts/1"

Emacs would need then to monitor the file descriptor using select in
wait_reading_process_output (process.c).

and I would  hook this up with a process using:

M-x gdb
Run gdb (like this): gdb -tty /dev/pts/1 -i=mi myprog

(In practice it's more likely that Emacs will set a Lisp variable to the
value of (open-pty-buffer buffer) and use it behind the users back.)

-- 
Nick                                           http://www.inet.net.nz/~nickrob

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-11-28  4:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-05 20:46 Opening a pty without a process Nick Roberts
2007-11-26 20:27 ` Nick Roberts
2007-11-27  5:30   ` Richard Stallman
2007-11-27  6:09     ` Nick Roberts
2007-11-27 19:53       ` Richard Stallman
2007-11-27 23:23         ` Nick Roberts
2007-11-27 15:36   ` Stefan Monnier
2007-11-27 23:22     ` Nick Roberts
2007-11-28  2:21       ` Stefan Monnier
2007-11-28  4:16     ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).