jose@inmet.UUCP (02/23/87)
Can anyone help? I want to change the way GNU Emacs handles control characters when echoing them to buffers. Right now Emacs just echoes control characters as an up arrow "^" followed by an ASCII graphic charecter. I want to turn this behavior off so I can run programs that manipulate the screen in inferior lisp or shell mode. Any pointers on how to dothis would be welcome. Jose Oglesby. Intermetrics Inc. Cambridge MA.
drw@cullvax.UUCP (03/02/87)
jose@inmet.UUCP writes: > Can anyone help? I want to change the way GNU Emacs handles > control characters when echoing them to buffers. Right now > Emacs just echoes control characters as an up arrow "^" > followed by an ASCII graphic charecter. I want to turn > this behavior off so I can run programs that manipulate > the screen in inferior lisp or shell mode. Any > pointers on how to dothis would be welcome. Try setting up a filter process (via set-process-filter) that interprets the output of the subprocess and writes it into the buffer just like a terminal writes the output to its screen. Then the process's output will have appropriate screen handling. Make sure you get the subprocess's termcap set right, particularly screen size. Nothing simpler will work, because the ^L command to Emacs causes it to redraw the screen, so Emacs has to know what the virtual screen of the subprocess contains. Dale -- Dale Worley Cullinet Software UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw ARPA: cullvax!drw@eddie.mit.edu
jr@ALEXANDER.BBN.COM.UUCP (03/02/87)
>> Can anyone help? I want to change the way GNU Emacs handles >> control characters when echoing them to buffers. Take a look at terminal mode (terminal.el). This appeared along about version 18.35 or so. /jr jr@bbn.com or jr@bbnccv.uucp Without life, there wouldn't be chemical companies.
mly@PREP.AI.MIT.EDU.UUCP (03/02/87)
Path: mit-eddie!ll-xn!cullvax!drw From: cullvax!drw (Dale Worley) Newsgroups: comp.emacs Date: 2 Mar 87 02:39:26 GMT > Can anyone help? I want to change the way GNU Emacs handles > control characters when echoing them to buffers. Right now > Emacs just echoes control characters as an up arrow "^" > followed by an ASCII graphic charecter. I want to turn > this behavior off so I can run programs that manipulate > the screen in inferior lisp or shell mode. Any > pointers on how to dothis would be welcome. Try setting up a filter process (via set-process-filter) that interprets the output of the subprocess and writes it into the buffer just like a terminal writes the output to its screen. Emacs 18 comes with a library which does this for termcap-using programs. Try m-x terminal-emulator. It doesn't work with terminfo, though it could be made to if somebody made the effort.