Commit Diff


commit - 3b71a65972534e09f834bb1cea65eb7b3f3a7d94
commit + 1f2f3d9135adeb85a74eac811768d381c2774b8b
blob - 39a91c939c0d27d16d08eeecf9a0ce44aa8c00d5
blob + 90dd3460108e2c25c0e969acf105e8938ce3bb72
--- de/mud/terminal/vt320.java
+++ de/mud/terminal/vt320.java
@@ -1684,15 +1684,18 @@ public abstract class vt320 extends VDUBuffer implemen
               deleteArea(C, R, columns - C, 1, attributes);
             break;
           case 'M': // RI
-            System.out.println("ESC M : R is "+R+", tm is "+tm+", bm is "+bm);
             if (R < tm) {
-                System.out.println("ESC M : R is "+R+", tm is "+tm+", above scroll region");
+                if (debug > 1)
+			System.out.println("ESC M : R is "+R+", tm is "+tm+", above scroll region");
 		R--;
 		break;
             }
-            if (R == tm) {
+            if (debug>1)
+		System.out.println("ESC M : R is "+R+", tm is "+tm+", bm is "+bm);
+            if (R == tm) { // scroll only if we are the topmargin of the scroll region. 
                 insertLine(R, 1, SCROLL_DOWN);
             } else {
+		// otherwise just go up 1 line.
 	        R--;
             }