[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: |
Barry Margolin |
Subject: |
Re: under termianl emacs, how to start a process and make it believe it's running inside a termial? |
Date: |
Mon, 04 Apr 2016 11:00:29 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.8972.1459748791.843.help-gnu-emacs@gnu.org>,
Shiyao Ma <i@introo.me> wrote:
> one more thing,
>
> `M-x ansi-term' does work. But again, how can I make `ranger' utllize the
> my termianl (iterm2) instead of the one provided by emacs?
Maybe:
M-! /usr/bin/ranger </dev/tty >&/dev/tty
>
> On 4 April 2016 at 13:40, Shiyao Ma <i@introo.me> wrote:
>
> > 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>ã
> >
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to 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, 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 <=
- 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