From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to `start-process' in different terminal?
Date: Sun, 22 Jun 2014 11:23:42 +0200 [thread overview]
Message-ID: <87vbrtmh5t.fsf@gmail.com> (raw)
Hi List,
when running Emacs on the console (without X) I use 'fbgs' to display
pdf files (converted to .tiff actally). This does not work with a
terminal multiplexer like tmux (running on e.g. tty), I have to switch
manually to e.g. tty1 to make it work.
Quite a lot of Emacs libs use start-process to display generated pdfs
with an OS dependent executable, for example "evince", always assuming
,----[ C-h f display-graphic-p RET ]
| display-graphic-p is a compiled Lisp function in `frame.el'.
|
| (display-graphic-p &optional DISPLAY)
|
| Return non-nil if DISPLAY is a graphic display.
`----
is non-nil. I would like to fallback to "fbgs" if it is nil on
GNU/Linux, normally from an Emacs running inside a tmux session e.g. on
tty.
How can I `start-process' in a different terminal (e.g. tty1) and switch
to that terminal in an Emacs Lisp program?
When I call `(terminal-list)' from Emacs instances on two different tty's I get
the same result:
,----
| (#<terminal 1 on /dev/tty>)
`----
and I don't find a function for switching terminal or calling cmd on
another terminal.
--
cheers,
Thorsten
next reply other threads:[~2014-06-22 9:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-22 9:23 Thorsten Jolitz [this message]
2014-06-23 2:46 ` How to `start-process' in different terminal? Stefan Monnier
2014-06-24 9:23 ` Thorsten Jolitz
2014-06-24 12:33 ` Stefan Monnier
2014-06-24 13:00 ` Thorsten Jolitz
[not found] <mailman.4092.1403429055.1147.help-gnu-emacs@gnu.org>
2014-06-22 15:03 ` Pascal J. Bourguignon
2014-06-23 2:47 ` Stefan Monnier
[not found] ` <mailman.4136.1403492122.1147.help-gnu-emacs@gnu.org>
2014-06-23 6:05 ` Pascal J. Bourguignon
2014-06-24 10:41 ` Thorsten Jolitz
2014-06-24 15:20 ` Thorsten Jolitz
2014-06-24 15:37 ` Eli Zaretskii
2014-06-24 16:51 ` Thorsten Jolitz
2014-06-24 17:02 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbrtmh5t.fsf@gmail.com \
--to=tjolitz@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).