From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?
Date: Sun, 03 Apr 2016 16:08:11 +0200 [thread overview]
Message-ID: <878u0urdis.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.8886.1459691173.843.help-gnu-emacs@gnu.org
Shiyao Ma <i@introo.me> writes:
> Hi,
>
> I am running emacs in a terminal.
>
> I want to invoke the ranger program, which is a tui file manager, inside
> emacs.
>
> basically, I am translating the following file into elisp.
> https://github.com/hut/ranger/blob/master/examples/vim_file_chooser.vim#L10
>
>
> The problem I am facing is, when I do a:
> (call-process "/usr/bin/ranger")
>
> ranger thinks it's not running inside terminal, and exited directly.
>
>
> So, my question is, how to make ranger believe it's actually inside a
> terminal?
You can use term or terminal for that:
M-x term RET /usr/bin/ranger RET
or: (term "/usr/bin/ranger") ; in code.
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
next parent reply other threads:[~2016-04-03 14:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8886.1459691173.843.help-gnu-emacs@gnu.org>
2016-04-03 14:08 ` Pascal J. Bourguignon [this message]
2016-04-04 5:40 ` under termianl emacs, how to start a process and make it believe it's running inside a termial? Shiyao Ma
2016-04-04 5:46 ` Shiyao Ma
[not found] ` <mailman.8972.1459748791.843.help-gnu-emacs@gnu.org>
2016-04-04 15:00 ` Barry Margolin
2016-04-05 2:11 ` Shiyao Ma
[not found] ` <mailman.9050.1459822277.843.help-gnu-emacs@gnu.org>
2016-04-05 2:43 ` Barry Margolin
2016-04-06 2:43 ` Shiyao Ma
2016-04-06 5:27 ` Bob Proulx
2016-04-04 16:09 ` Yuri Khan
2016-04-03 13:46 Shiyao Ma
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878u0urdis.fsf@kuiper.lan.informatimago.com \
--to=pjb@informatimago.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.