billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=1f62a447a3a849c0bb10da1e26be264d4f54be95

commit 1f62a447a3a849c0bb10da1e26be264d4f54be95
Author: Aleksandar Popadić <[email protected]>
Date:   Wed Dec 25 12:09:50 2013 +0100

    DECCOLM - do not change terminal height
    
    Summary: I'm taking xterm as a reference here.
    
    Reviewers: billiob
    
    Reviewed By: billiob
    
    Differential Revision: https://phab.enlightenment.org/D410
---
 src/bin/termptyesc.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 54696f4..af19534 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -654,11 +654,14 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, 
Eina_Unicode *ce)
                                       wn = termio_win_get(ty->obj);
                                       elm_win_size_step_get(wn, &w, &h);
                                       evas_object_resize(wn,
-                                                         4 + (mode ? 132 : 80) 
* w,
-                                                         4 + 24 * h);
-                                      termpty_resize(ty, mode ? 132 : 80, 24);
+                                                         4 +
+                                                         (mode ? 132 : 80) * w,
+                                                         4 + ty->h * h);
+                                      termpty_resize(ty, mode ? 132 : 80,
+                                                     ty->h);
                                       _termpty_reset_state(ty);
-                                      _termpty_clear_screen(ty, 
TERMPTY_CLR_ALL);
+                                      _termpty_clear_screen(ty,
+                                                            TERMPTY_CLR_ALL);
                                    }
 #endif
                                  break;

-- 


Reply via email to