Re: external editors
Re: external editors
- Subject: Re: external editors
- From: Markus Hitter <email@hidden>
- Date: Sun, 20 Jan 2002 12:32:09 +0100
Am Sonntag den, 20. Januar 2002, um 00:00, schrieb Warren Leach:
Would it be efficient to write wrappers for command line
editors like VI and Emacs to interact with them?
Probably not. You whould have to send each key down to the
wrapped program then each result character up again. You'd have
to do full terminal code (VT100) interpretation in both
directions. Lots of overhead. Time you loose for realtime
checking.
Is there a better way?
For emacs, you could write a plugin but this would be emacs-only, then.
What about doing your own interface and accepting the same
commands, doing the same behaviour as your to-be-wrapped editor?
For VI, you'd switch between insert an command mode, accept "x",
"yy", "p", etc. as commands and your users should feel
comfortable. Shouldn't be too hard to implement as sources for
VI and Emacs are available.
Have fun,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/