From: Tim X <timx@spamto.devnul.com>
Subject: Re: WARNING: terminal is not fully functional
Date: 31 May 2003 19:39:45 +1000 [thread overview]
Message-ID: <871xyftpy6.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: bb5kt9$rlm$1@reader1.panix.com
>>>>> "Irving" == Irving Kimura <irving_kimura@lycos.com> writes:
Irving> In <5lllwpq0jt.fsf@rum.cs.yale.edu> "Stefan Monnier"
Irving> <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> writes:
>>> I find it infuriating that M-x shell does not give me a fully
>>> functional bash (or rather, a fully functional terminal). For
>> M-x shell does not try to give you a fully functioning terminal.
>> Try M-x term RET if you want a terminal.
Irving> That almost worked! But ls hangs (in fact brings all of
Irving> Emacs to its knees) after printing the first line of files
Irving> (in color, though!). As I said, Emacs at this point falls
Irving> into a deep coma; the only thing to do is to kill -9 the
Irving> process. What am I doing wrong?
Irving> Thanks!
Irving> -Irv
Hi Irving,
I think you need to re-evaluate a bit how you do things. Everything
you need/want to do can be done very functionally from within emacs,
but you need to approach it in a different way. For example, instaed
of greping something and then passing ti to less, just use M-x
shell-command (bound to M-!). You will be prompted for the shell
command and the output from that command will be ut into an emacs
buffer which you can page through just like other emacs buffers.
Note that in fact, emacs has a built in grep, so you would probably
use that instead of the shell grep, but it suffices for an
example. Essentially, any shell command you execute with M-x
shell-command will write its ouput to a buffer where you can then
manipulate it as you want.
M-x shell gives you a very basic shell interface. Use ansi-color mode
to have it interpret ansi escape codes correctly. for a more
functional terminal, try out M-x term. For a very powerful shell
interface, try out M-x eshell - a shell written in emacs lisp which
will allow you to execute arbitrary emacs lisp functions as well as
provide basic shell interaction with the operating system.
For viewing man pages try either M-x man or M-x woman.
For viewing processes in a similar way to top, get hold of the
view-process mode.
Essentially, I find the best way for doing things when working with
emacs is to first check to see if emacs has the ability to get the
info or do what you want natively. If not, I then check to see if
there is an add on package which will do what I want and if that
fails, then I revert to using things like M-x shell, term, eshell. I
find 90% of the time, I can do everything from within emacs and rarely
need to resort to shell or term.
Tim
--
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you
really need to send mail, you should be able to work it out!
next prev parent reply other threads:[~2003-05-31 9:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-29 14:13 WARNING: terminal is not fully functional Irving Kimura
2003-05-29 14:18 ` Phillip Lord
2003-05-29 14:26 ` lawrence mitchell
2003-05-31 9:28 ` Tim X
2003-05-29 14:29 ` Paolo Gianrossi
2003-05-29 14:39 ` Stefan Monnier
2003-05-29 18:52 ` Irving Kimura
2003-05-30 4:58 ` Kai Großjohann
2003-05-30 18:23 ` Irving Kimura
2003-05-30 18:26 ` Barry Margolin
2003-05-31 9:39 ` Tim X [this message]
2003-06-02 17:25 ` Kevin Rodgers
2003-05-29 16:02 ` Kevin Rodgers
2003-05-29 18:07 ` Pascal Bourguignon
[not found] ` <878ysp1kyk.fsf@kruhft.vc.shawcable.net>
2003-06-01 6:07 ` Pascal Bourguignon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871xyftpy6.fsf@tiger.rapttech.com.au \
--to=timx@spamto.devnul.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).