A. L. Meyers wrote:
Posted the following at comp.emacs.xemacs and received the suggestion
to
post here:
Am getting garbled output in shell instead of nice lines, e. g.
9190/256kB 19%] 5124B/s 43m49s18% [5 console-tools
52086/256kB 20%] 5124B/s 43m49s18% [5 console-tools
53534/256kB 20%] 5124B/s 43m48s18% [5 console-tools
56430/256kB 22%] 5124B/s 43m48s18% [5 console-tools
59326/256kB 23%] 5124B/s 43m47s18% [5 console-tools
62222/256kB 24%] 5124B/s 43m47s18% [5 console-tools
65118/256kB 25%] 5124B/s 43m46s18% [5 console-tools
68014/256kB 26%] 5551B/s 40m24s18% [5 console-tools
70910/256kB 27%] 5551B/s 40m23s18% [5 console-tools
70910/256kB 27%] 5551B/s 40m23s18% [5 console-tools
75254/256kB 29%] 5551B/s 40m23s18% [5 console-tools
78150/256kB 30%] 5551B/s 40m22s18% [5 console-tools
81046/256kB 31%]
How can I customize xemacs to get nice looking shell output, please?
Use term-mode ("M-x term") instead of shell-mode ("M-x shell").
shell-mode implements a "dumb" terminal, which simply dumps all
process output into the buffer; it doesn't process *any* control
characters or escape sequences (although the ansi-color package
provides an option to process ANSI colour sequences).
term-mode emulates a character-cell terminal (similar to xterm).
The key problem is that a number of programs simply assume that the
terminal supports certain features (which are supported by e.g. xterm
and the Linux console, but not by shell-mode), rather than checking
whether the terminal actually supports the feature before using it.
Such programs will only work with term-mode, not with shell-mode.
Note that term-mode can be switched between character mode (which
behaves more like xterm) and "line mode" (which behaves more like
shell-mode) with "C-c C-k" (character mode) and "C-c C-j" (line
mode).
--
Glynn Clements <glynn.clements(a)virgin.net>