🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189078

Running a curses app from emacs?

#189078
From: Nathaniel Borenstein
Date: Tue, 14 May 1991 19:13
16 lines
1595 bytes
I have a situation where I want to have an Emacs lisp function
automatically call an independent non-emacs program that uses TERMCAP
entries (the curses library, actually) to interact with the user.  If
emacs is running under X11, this is no problem, as I can spawn off an
xterm in which to run the program.  If not, though, I'm not sure what to
do.  I've tried the terminal-emulator package, and was not very happy
with it, as it lacked such basic things as reverse video highlighting.

I remember that this kind of thing was very easy with Gosling (Unipress)
emacs -- there was a lisp primitive that would cause Emacs to execute a
recursive interactive subshell, and when the subshell exeucted Emacs
would resume & redraw the screen.  Gnu Emacs is, as far as I can tell,
much more powerful than Gosling emacs, so surely there is some way to do
this?   (For the record, "call-process" does almost exactly what I want,
except that the applications get called with the terminal in a state so
peculiar that not even the "reset" command can save it.)  Any ideas?
Technical Details
Message-ID: <401@salt.bellcore.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!bellcore!salt!nsb

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,1c09b7ad28770c02,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-05-15 00:58:47 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!rutgers!bellcore!salt!nsb
From: nsb@thumper.bellcore.com (Nathaniel Borenstein)
Newsgroups: gnu.emacs.help
Subject: Running a curses app from emacs?
Message-ID: <401@salt.bellcore.com>
Date: 14 May 91 19:13:34 GMT
Sender: news@salt.bellcore.com
Lines: 16