Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 26 May 2010 07:11:04 +0000 (15:11 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 26 May 2010 07:11:04 +0000 (15:11 +0800)
Sample/Window.js

index c67df5d..1169221 100644 (file)
@@ -3438,7 +3438,7 @@ Window=new XObject({
                                                             pack : "add",
                                                             id : "Terminal",
                                                             feed : function(istr) {
-                                                                var str = istr.replace("\n", "\r\n") + "\r\n";
+                                                                var str = istr.replace(/\n/g, "\r\n") + "\r\n";
                                                                 // we should make ourselves visable!!!
                                                                 this.get('/BottomPane').el.show();
                                                                 this.get('/BottomPane').el.set_current_page(1);