[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Opening a pty without a process
From: |
Richard Stallman |
Subject: |
Re: Opening a pty without a process |
Date: |
Tue, 27 Nov 2007 23:16:53 -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.