Permalink
Browse files

"prime the pump" with a write to EMPTY

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@6413 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent 0f0f1b7 commit 6bf7e4c4c91f84e19ca0a485ca1bb38afe852f04 @mental mental committed Apr 5, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/org/jruby/demo/TextAreaReadline.java
View
2 src/org/jruby/demo/TextAreaReadline.java
@@ -195,6 +195,8 @@ public TextAreaReadline(JTextComponent area) {
public TextAreaReadline(JTextComponent area, final String message) {
this.area = area;
+
+ inputJoin.send(Channel.EMPTY.ordinal(), null);
area.addKeyListener(this);

0 comments on commit 6bf7e4c

Please sign in to comment.