emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read a reply from the terminal


From: Eli Zaretskii
Subject: Re: read a reply from the terminal
Date: Mon, 16 Jul 2007 06:11:55 +0300

> From: address@hidden (Johan =?utf-8?Q?Bockg=C3=A5rd?=)
> Date: Mon, 16 Jul 2007 00:04:43 +0200
> 
> How can insert-file-contents be used to read a reply from the terminal
> (if you know how many bytes it contains). It sounded like you had a
> solution in mind.

The terminal can be addressed by name (its device driver name,
something like "/dev/tty1"), right?  If so, you can read from that
device as if it were a file.  insert-file-contents is a way to read
from files, and it supports reading a certain number of bytes.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]