Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!lll-winken!ncis.tis.llnl.gov!lance.tis.llnl.gov!paik From: paik@lance.tis.llnl.gov (Yunki Paik) Newsgroups: comp.editors Subject: vi anomaly - advice sought Message-ID: <833@ncis.tis.llnl.gov> Date: 1 Jun 90 22:24:52 GMT Sender: news@ncis.tis.llnl.gov Reply-To: paik@lance.tis.llnl.gov (Yunki Paik) Distribution: usa Organization: Lawrence Livermore National Laboratory, Livermore CA Lines: 25 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