[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 <pjb@informatimago.com>
wrote:
> 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
>
--
吾輩は猫である。ホームーページはhttps://introo.me <http://introo.me>。
- Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?, Pascal J. Bourguignon, 2016/04/03
- Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?,
Shiyao Ma <=
- Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?, Shiyao Ma, 2016/04/04
- Message not available
- Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?, Barry Margolin, 2016/04/04
- Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?, Shiyao Ma, 2016/04/04
- Message not available
- Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?, Barry Margolin, 2016/04/04
- Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?, Shiyao Ma, 2016/04/05
- Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?, Bob Proulx, 2016/04/06
Re: under termianl emacs, how to start a process and make it believe it's running inside a termial?, Yuri Khan, 2016/04/04