Permalink
Browse files

APSTUD-4919: Terminal displays incorrectly after real estate is exhau…

…sted with content.

Actually, reverting previous commit: b2ebb6a: [341-ctrl-l-doesnt-clear-initial-rails-output]
and added a .sh to compile redtty.c in linux (targetting 32 and 64 bits)
  • Loading branch information...
1 parent 98f7f4e commit 802d100159af48f5db4cf2eadae2cc920b282768 @fabioz fabioz committed Sep 8, 2012
@@ -0,0 +1,10 @@
+#Note: sudo apt-get install gcc-multilib is needed to compile 32bits (if on a 64 bit machine)
+#Note: -lutil is needed for forkpty.
+
+gcc redtty.c -o ../../plugins/com.aptana.terminal/os/linux/x86_64/redtty -lutil -m64
+echo Compiled ../../plugins/com.aptana.terminal/os/linux/x86_64/redtty
+
+gcc redtty.c -o ../../plugins/com.aptana.terminal/os/linux/x86/redtty -lutil -m32
+echo Compiled ../../plugins/com.aptana.terminal/os/linux/x86/redtty
+
+echo Compile finished
@@ -117,9 +117,6 @@
*/
private int nextAnsiParameter = 0;
- private int lastCursorLine = -1;
- private int lastCursorColumn = -1;
-
private boolean insertMode = false;
Reader fReader;
@@ -666,8 +663,6 @@ private void processAnsiCommand_G() {
* sequence parameters (default is the upper left corner of the screen).
*/
private void processAnsiCommand_H() {
- lastCursorLine = text.getCursorLine();
- lastCursorColumn = text.getCursorColumn();
moveCursor(getAnsiParameter(0) - 1, getAnsiParameter(1) - 1);
}
@@ -757,18 +752,7 @@ private void processAnsiCommand_J() {
case 2:
// Erase entire display.
-
- if (text.getCursorLine() == 0 && text.getCursorColumn() == 0
- && lastCursorLine != -1 && lastCursorColumn != -1) {
- moveCursor(lastCursorLine, lastCursorColumn);
- for (int i = text.getLines(); i > 0; --i) {
- text.processNewline();
- }
- moveCursor(0, 0);
- lastCursorLine = -1;
- lastCursorColumn = -1;
-
- }
+
text.eraseAll();
break;

0 comments on commit 802d100

Please sign in to comment.