[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Read from stdin in non-batch mode
From: |
Thorsten Jolitz |
Subject: |
Re: Read from stdin in non-batch mode |
Date: |
Sat, 19 Oct 2013 18:25:12 +0200 |
User-agent: |
Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) |
"Pascal J. Bourguignon" <pjb@informatimago.com> writes:
> There's no stdin, because that's where the keys you're typing
> interactively are coming from, normally.
>
> Now, on linux, the program could use /dev/tty for interactive terminal
> I/O instead of /dev/stdin, so you could both read a stdin file and have
> terminal interaction. But this is specific to linux (AFAIK).
>
> Of course, with X, the keys come from the the X server instead of the
> terminal, so again, stdin would be free for an input stream.
>
> But this would require a special case, compared to running emacs in a
> terminal on a non linux system. I guess you will have to patch emacs to
> get it.
Ok, thanks, I just wanted to make sure I don't miss the obvious (solution)
here. In this case I rather use a temporary buffer as input stream than
patching Emacs.
--
cheers,
Thorsten