help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: under termianl emacs, how to start a process and make it believe it'


From: Pascal J. Bourguignon
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Shiyao Ma <address@hidden> 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


reply via email to

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