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: Shiyao Ma
Subject: Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?
Date: Mon, 4 Apr 2016 13:40:45 +0800

sorry for my first mail. It seems a little misleading.


It's not to allocate a term-ish thing for ranger *from emacs*.

Indeed, I'd like to run "ranger" as the foreground process, since I am
already inside terminal.



Btw, the M-x term thing failed, out put here:
https://bpaste.net/show/c45a47b26cd8

But it's not relevant here because the terminal should be my own terminal.



regards.

On 3 April 2016 at 22:08, Pascal J. Bourguignon <address@hidden>
wrote:

> 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
>



-- 

吾輩は猫である。ホームーページはhttps://introo.me <http://introo.me>。


reply via email to

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