pcman-bbs / pcmanfx

Automatically exported from code.google.com/p/pcmanfx
Other
4 stars 1 forks source link

按下End後,無法按"上"瀏覽上面的訊息 #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. 上ptt(在瀏覽ptt時發現的)
2. 進到某一討論區(例如google版)
3. 瀏覽某一則文章(例如下方置底的google版版規)
4. 按下end(他應該會直接卷至此文章的最下面)
5. 按"向上"方向鍵(他只會將信息顯示在第一行)
6. 按"向左"方向鍵離開(他會回上個畫面但畫面會有殘留)
7. 
附註,若不操作步驟5(也就是按end後不按上)的話,此現象�
��會出現

What is the expected output? What do you see instead?
我期待看到的現象是:按"向上"鍵後,整個視區應該要往上卷
(就跟平常按上是相同
的),但是實際上他只會換掉第一行。

What version of the product are you using? On what operating system?
pcmanfx 0.1.8、firefox3.5.6、WinXP sp3

Please provide any additional information below.
none.

Original issue reported on code.google.com by kanandg1 on 20 Dec 2009 at 6:36

GoogleCodeExporter commented 9 years ago
我也發現一樣的問題 提供了patch來修正 測試過是正常的

--- ansiparser.js   (revision 40)
+++ ansiparser.js   (working copy)
@@ -122,6 +122,10 @@
             case STATE_ESC:
                 if(ch == '[')
                     this.state=STATE_CSI;
+                else if(ch == 'D')
+                    term.scroll(false, 1)
+                else if(ch == 'M')
+                    term.scroll(true, 1)
                 else
                     this.state=STATE_C1;
                 break;

Original comment by andy...@gmail.com on 4 Aug 2010 at 7:35

Attachments:

GoogleCodeExporter commented 9 years ago
謝謝,不過這個部分應該要寫在 STATE_C1 裡面
            case STATE_C1:
                this.esc += ch;
                dump('C1 CONTROL CHAR IS FOUND' + this.esc + '\n');
                this.esc='';
                this.state=STATE_TEXT;
                break;
ESC + 其他字母是屬於 C1

Original comment by pcman...@gmail.com on 31 Aug 2010 at 2:46

GoogleCodeExporter commented 9 years ago
fixed

Original comment by pcman...@gmail.com on 7 Sep 2010 at 2:43