all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Interactive programs and dumb terminals (emacs shell)
@ 2006-07-12 16:12 john maclean
  0 siblings, 0 replies; 6+ messages in thread
From: john maclean @ 2006-07-12 16:12 UTC (permalink / raw)


Hey Chaps,

I've been using M-x shell recently and getting the hang of the
difference between this shell and say /bin/bash.

My question is in the cases where one installs a program (via say
apt-get -y install foo) which then prompts you for some configuration
settings. The emacs shell is a "dumb terminal" as I understand it and
interactive programs that use ncurses
won't work. Install latex, tetex or xorg and you'll get asked system
settings like your resolution, paper size etc.

How can I over come this? ( Hope that this is all clear).


-- 
John Maclean  - 07739 171 531
MSc (DIC)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interactive programs and dumb terminals (emacs shell)
       [not found] <mailman.4033.1152720752.9609.help-gnu-emacs@gnu.org>
@ 2006-07-12 16:29 ` Markus Triska
  2006-07-12 16:34 ` harry meyers
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Markus Triska @ 2006-07-12 16:29 UTC (permalink / raw)


"john maclean" <jayeola@gmail.com> writes:
>
> How can I over come this? ( Hope that this is all clear).
>

M-x term ?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interactive programs and dumb terminals (emacs shell)
       [not found] <mailman.4033.1152720752.9609.help-gnu-emacs@gnu.org>
  2006-07-12 16:29 ` Markus Triska
@ 2006-07-12 16:34 ` harry meyers
  2006-07-12 18:40 ` Pascal Bourguignon
  2006-07-14  5:15 ` Tim X
  3 siblings, 0 replies; 6+ messages in thread
From: harry meyers @ 2006-07-12 16:34 UTC (permalink / raw)



john maclean schrieb:

> Hey Chaps,
>
> I've been using M-x shell recently and getting the hang of the
> difference between this shell and say /bin/bash.
>
> My question is in the cases where one installs a program (via say
> apt-get -y install foo) which then prompts you for some configuration
> settings. The emacs shell is a "dumb terminal" as I understand it and
> interactive programs that use ncurses
> won't work. Install latex, tetex or xorg and you'll get asked system
> settings like your resolution, paper size etc.
>
> How can I over come this? ( Hope that this is all clear).

You can use M-x term which activates /bin/bash by default. 

harry

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interactive programs and dumb terminals (emacs shell)
       [not found] <mailman.4033.1152720752.9609.help-gnu-emacs@gnu.org>
  2006-07-12 16:29 ` Markus Triska
  2006-07-12 16:34 ` harry meyers
@ 2006-07-12 18:40 ` Pascal Bourguignon
  2006-07-13  0:09   ` Miles Bader
  2006-07-14  5:15 ` Tim X
  3 siblings, 1 reply; 6+ messages in thread
From: Pascal Bourguignon @ 2006-07-12 18:40 UTC (permalink / raw)


"john maclean" <jayeola@gmail.com> writes:

> Hey Chaps,
>
> I've been using M-x shell recently and getting the hang of the
> difference between this shell and say /bin/bash.

What difference?

Here,  M-x shell RET echo $SHELL RET
prints: /bin/bash


> My question is in the cases where one installs a program (via say
> apt-get -y install foo) which then prompts you for some configuration
> settings. The emacs shell is a "dumb terminal" as I understand it and

You are understanding wrong.

The shell is the shell, and the terminal is the terminal.  Two
different unrelated things.

The shell program run under M-x shell is most probably /bin/bash,
unless you've configured another shell.

The terminal emulator run under M-x shell is emacs, and emacs is
nearly dumb.  (There are emacs and dumb entries in termcap).

The dumbness is in the lack of cursor movement control sequence for
the emacs (and dumb) terminal emulators, (and unless your activate M-x
ansi-color-for-comint-mode-on, lack of color, blink, etc).


> interactive programs that use ncurses won't work. 

Yes.

> Install latex, tetex or xorg and you'll get asked system
> settings like your resolution, paper size etc.
>
> How can I over come this? ( Hope that this is all clear).

M-x term RET
or:
M-x terminal-emulator RET

Another possibility is  to use: xterm -display :0.0 -e apt-get install stuff &
in M-x shell.
You could even make an alias; put this in ~/.emacs_bash :

export TERM=emacs
export PAGER=cat
alias less=cat
alias more=cat
alias apt-get='xterm -display :0.0 -e apt-get'
stty rows 10000 coluns 80
echo '# Welcome to emacs shell'



-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"Remember, Information is not knowledge; Knowledge is not Wisdom;
Wisdom is not truth; Truth is not beauty; Beauty is not love;
Love is not music; Music is the best." -- Frank Zappa

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interactive programs and dumb terminals (emacs shell)
  2006-07-12 18:40 ` Pascal Bourguignon
@ 2006-07-13  0:09   ` Miles Bader
  0 siblings, 0 replies; 6+ messages in thread
From: Miles Bader @ 2006-07-13  0:09 UTC (permalink / raw)


Pascal Bourguignon <pjb@informatimago.com> writes:
> alias apt-get='xterm -display :0.0 -e apt-get'

Well the basic point is good, but for apt-get in particular, why?

apt-get should work fine in Emacs shell mode... shell mode basically
implements a dumb terminal, but it _can_ handle stuff like using
carriage-return to update a single-line progress display -- and that's
basically all that apt-get uses.

-Miles

-- 
Is it true that nothing can be known?  If so how do we know this?  -Woody Allen

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Interactive programs and dumb terminals (emacs shell)
       [not found] <mailman.4033.1152720752.9609.help-gnu-emacs@gnu.org>
                   ` (2 preceding siblings ...)
  2006-07-12 18:40 ` Pascal Bourguignon
@ 2006-07-14  5:15 ` Tim X
  3 siblings, 0 replies; 6+ messages in thread
From: Tim X @ 2006-07-14  5:15 UTC (permalink / raw)


"john maclean" <jayeola@gmail.com> writes:

> Hey Chaps,
>
> I've been using M-x shell recently and getting the hang of the
> difference between this shell and say /bin/bash.
>
> My question is in the cases where one installs a program (via say
> apt-get -y install foo) which then prompts you for some configuration
> settings. The emacs shell is a "dumb terminal" as I understand it and
> interactive programs that use ncurses
> won't work. Install latex, tetex or xorg and you'll get asked system
> settings like your resolution, paper size etc.
>
> How can I over come this? ( Hope that this is all clear).
>

A couple of things possibly worth trying out.

1. apt-get can be configured to use text mode rather than a gui style
   interface, such as with dialog or whiptail etc. So, if you are
   configured for text mode, then you should be able to run apt-get
   within a 'dumb' terminal without any problems.

2. Instead of using M-x shell, you could try M-x term. This is a more
   sophisticated terminal emulator and will probably support curses
   based apps.

Tim



-- 
tcross (at) rapttech dot com dot au

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-07-14  5:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-12 16:12 Interactive programs and dumb terminals (emacs shell) john maclean
     [not found] <mailman.4033.1152720752.9609.help-gnu-emacs@gnu.org>
2006-07-12 16:29 ` Markus Triska
2006-07-12 16:34 ` harry meyers
2006-07-12 18:40 ` Pascal Bourguignon
2006-07-13  0:09   ` Miles Bader
2006-07-14  5:15 ` Tim X

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.