all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: nickrob@snap.net.nz, emacs-devel@gnu.org
Subject: Re: Opening a pty without a process
Date: Tue, 27 Nov 2007 23:16:53 -0500	[thread overview]
Message-ID: <E1IxEM1-0002dy-P6@fencepost.gnu.org> (raw)
In-Reply-To: <jwv4pf790hq.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Tue, 27 Nov 2007 10:36:57 -0500)

       (defun open-pty-buffer (buffer)
	 (let* ((process-connection-type 'pty)
		(proc (start-process "foo" buffer "sh" "-c"
				     "while sleep 3600; do :; done")))
	   (process-tty-name proc)))

    I guess it would be convenient indeed to be able to use nil for the
    program rather than a contraption like the one above.  OTOH we could
    just use `hexl' by adding a flag to it (it's already abused in a similar
    way by `ielm').

I think it would be much cleaner to do this at C level
and dispense with the need to run any program in this pty.

      parent reply	other threads:[~2007-11-28  4:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

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=E1IxEM1-0002dy-P6@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=nickrob@snap.net.nz \
    /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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.