eshell, term and ncurses

eshell, term and ncurses

Post by SK » Fri, 10 May 2002 00:59:56



Dear XEmacs Community,

I've been searching a solution for this problem for weeks now and I
must admit that I don't get any step further now :(

The other day I encountered eshell and was quite happy to find it,
then -as the final test- I started 'top' and it didn't work. By the
time I found that there exists a variable telling eshell for which
programms it should use the term command (usually programs like vi and
top can be found there) and so I started poking in the term package.

Whenever I start top I see the correct first line of the top-screen
flash for a very short moment and the I end up with a full screen of
ASCII mess
like so:

====BEGIN MESS
  6:03pm  up  3:49,  6 users,  load average: 0.16, 0.10, 0.07
                                                                                                           506 ro86 processes: 83 sleeping, 2 running, 1 zombie,
0 stopped
                                   CPU states:  4.1% user,  1.9% system,  0.0% nice, 93.8% idle
                                                                                                                                                           Mem:   513612K av,  372688K used,  140924K free,
      0K shrd,   71996K buff
                                                                                                                 Swap:  658656K av,    5364K used,  653292K free        
         196684K cached
                                                          700 nob
                                                                           PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM  
TIME COMMAND
            6945 username       19   0 11952  11M  4184 R     3.1  2.3   0:03
xemacs
 744   628 S     0.0  0.1   0:00 in.identd                                                                  1104 root    
14   0  72M  16M  4576 S     2.1  3.3   0:28 X

====END MESS

Can you help me out?

Thanks :)
Stefan Kamphausen

 
 
 

1. eshell: eshell-command-result and environment

Hi,

It would be useful if 'eshell-command-result' inherited the set of
environment variables from the invoking shell, since this would make
it more convenient to write eshell functions.

Consider the following example: a function that invokes snmpget on a
remote machine, whose hostname is passed as an argument. The snmpget
command uses an environment variable MIBS; even if this is set (using
"export MIBS=/path/to/the/mib") in the eshell session, it isn't
propagated to the snmp-uptime command.

Is there is a better way to run external commands?  The following
example is simplified; I really want to do a regexp search on the
results of snmpget.

(defun eshell/snmp-uptime (&rest args)
  (eshell-command-result
   (format "snmpget %s public cpuUpTime.0" (first args))))

[I know about the -m option to snmpget]

--
Eric Marsden                          <URL:http://www.laas.fr/~emarsden/>

2. Winsock 2 ATM service

3. Eshell-buffer-shorthand and Eshell completions

4. Windows NT & FS98 & Sidewinder

5. emacs freezes in term & term-emulator

6. client based applications

7. XEmacs and ncurses problem on Linux

8. Excel 5.0 GPF while saving a Workbook!?!

9. Ncurses support for Xemacs ttys Display ?

10. XEmacs and ncurses (Linux console)?

11. eshell ls directory completion adds separator

12. eshell display

13. eshell: bug in Makefile?