On Mon, Jun 16, 2003 at 10:39:38AM -0500, Nix, Robert P. wrote:
>
> vi is definitely out.

Well, almost. You can still use its command-mode. For vim: run it as
'ex' to start in command-mode (ex emulation).

> This is because VT100 terminals interact with
> the system on a character by character basis, but the 3270 terminal
> works in "blocks". Your keystrokes are not seen by the host (in this
> case, Linux) until an attention key is pressed, such as the Enter key.
> vi is completely based on a character by character interaction. Any
> other program that expects to be able to immediately react to the
> keyboard (less, more...) are also crippled because of the choice of
> terminal.
>
> However, sed will work perfectly (given the escape quoting described
> above). And where more won't work well, cat works perfectly, because
> the screen freezes at the end of each page, waiting on you to press
> clear.

The problem with sed is that it only works as a filter, and not as a
file editor. If you want inline-editing with syntax that is almost the
same as sed, use "perl -pi -e 'commands' filename"

vim will give you ex. But you can go even farther, and use ed.

Yes, non of those are a substitute for a decent full-screen vim session.
:-(

BTW: what exactly is the terminal type 'ibm327x' that comes with the
standard terminfo distro? (yes, I tried it and it doesn't help a bit).

Is there any way to make 'ls --color ' print colors?

--
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED]       +---------------------------+

Reply via email to