[Ngms-svn] SVN-Commit: [278] fix a bug that NMKeyListener eat up cpu.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 3月 17日 (水) 16:00:27 JST


Revision: 278
          http://sourceforge.jp/projects/ngms/svn/view?view=rev&revision=278
Author:   osiire
Date:     2010-03-17 16:00:27 +0900 (Wed, 17 Mar 2010)

Log Message:
-----------
fix a bug that NMKeyListener eat up cpu.

NB: NMKeyListener may still gulp a character input around the time
NMKeyListener.withListener(false) { ... } is called.
The reason is: If NMKeyListener is disabled while NMKeyListener is
waiting a input, the listener read the first character available,
and sleep until he is awakened. This might cause a weird behavior.
For example, when execute vim (with +termresponse flag) as external command
on xterm, vim outputs some special escape sequence to xterm,
but the NMKeyListener eats the first character of it.
As a result, the rest of the output is simply passed to the shell, not to xterm.
This would be, however, not so a serious problem.
NMKeyListener may gulp your input, but never mind!

Modified Paths:
--------------
    trunk/source/NMShell/src/info/ngms/nmshell/Main.scala
    trunk/source/NMShell/src/info/ngms/nmshell/NMReadline.scala




Ngms-svn メーリングリストの案内
Back to archive index