[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to `start-process' in different terminal?
From: |
Thorsten Jolitz |
Subject: |
Re: How to `start-process' in different terminal? |
Date: |
Tue, 24 Jun 2014 15:00:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> | terminal-list is a built-in function in `C source code'.
> [...]
>> but the function returns
>> ,----
>> | (#<terminal 1 on /dev/tty>)
>> `----
>
> Emacs's terminals are not the OS's terminals. It's the "output devices"
> that Emacs currently uses. So if you have several "emacsclient -t"
> sessions (or used make-terminal-frame), each one will have its own
> "terminal" (one might be on /dev/tty1, another on /dev/pts/4), and every
> time you use make-frame-on-display on another display you'll get
> another "terminal".
>
>> in my case although Archlinux with systemd has several terminals
>> pre-initialized AFAIK.
>
> But Emacs isn't using these, hence they're not in the list.
>
>> So this `terminal-list' is just about M-x term from within Emacs and
>> then
>
> No, M-x term is yet something completely different. These are virtual
> terminals created inside Emacs for use by other applications.
Ok, on top of the already a bit confusing console/terminal/tty/pty stuff
there is another layer of confusion once Emacs enters the game ...
So calling 'tty on my tty1 (with tmux) I get
,----
| [tj@arch ~]$ tty
| /dev/pts/0
`----
while after switching to tty2 (without tmux) I get
,----
| [tj@arch ~]$ tty
| /dev/tty2
`----
and I would need to explicitly make terminal-frames on both to get 2
"terminals" in Emacs 'terminal-list.
--
cheers,
Thorsten