Re: console strangeness

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Wenzhi Liang wrote:

> I am trying to use AAP. I found it much easier to 
> learn and use than make (I know it can do more,
> but that is the first step), and python is great!
> 
> Now my question:
> I wrote a aap recipe for committing changes into CVS.
> However, because checking in needed an editorm, vim 
> was called during the course. And that upset the 
> console. Lines are overwriting each other and I can
> see vim only 'sees' half of the console -- the last
> line is in the middle. I have to do a 'reset' in the
> console to get it back to normal. 
> 
> Is this a know problem or I am just doing something
> wrong?

I have seen this problem as well.  It appears Python sometimes changes
the terminal settings, which confuses Vim.  I suppose Python does this
for the line-editing that is used in interactive mode.

I can't reproduce it right now.  I used a ":sys vim" command in a
recipe.  Vim gives a warning that the output is redirected and only half
the lines in the xterm are used, but it works properly otherwise.
I'm using Python 2.3, if that matters.

I have not yet found a method to avoid this.  Isn't there a Python
argument that avoids the interactive mode?

There is one trick you can try: When Vim is running, resize the xterm.

-- 
Q: Should I clean my house or work on Vim?
A: Whatever contains more bugs.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.