[comp.editors] vi anomaly - advice sought

paik@lance.tis.llnl.gov (Yunki Paik) (06/02/90)

Here is a question for vi pros. Any pointers and advices greatly appreicated.

          Symtom:  ** Vi echoes every commands even in command mode.  **

The senario goes like this: I am within a program which runs in tty raw mode.
Later, it needs to overlay itself with another program which runs in cooked 
tty mode. So, the second program is invoked like this:

	stty -g > org_tty_setting	# preserve the original raw tty 
					# settings.
	stty sane cooked echoe, and so on.	
	second_program  	 	# is overlaid here. Runs in cooked mode.
	stty `cat org_tty_setting`	# restore the original tty settings,

It works fine so far.
It turns out that the second program may once in a while invoke vi, and that's
when the problem shows up. Vi, for strange reason, echoes every command on
screen. It does, however, leaves the file correctly edited.

Any idea?
Thanks in advance.
--
Yunki Paik
paik@lance.tis.llnl.gov
VOICE (415)423-2038