comparison src/com/five_ten_sg/connectbot/service/TerminalBridge.java @ 253:e13878bb3ddf

add host preference for fixed screen size
author Carl Byington <carl@five-ten-sg.com>
date Mon, 14 Jul 2014 12:44:57 -0700
parents 0181323d0d33
children edf4dacea9ff
comparison
equal deleted inserted replaced
252:932e34a11e9e 253:e13878bb3ddf
581 } 581 }
582 582
583 // force full redraw with new buffer size 583 // force full redraw with new buffer size
584 fullRedraw = true; 584 fullRedraw = true;
585 redraw(); 585 redraw();
586 parent.notifyUser(String.format("%d x %d", columns, rows)); 586
587 // initial sequence from
588 // transport.connect()
589 // bridge.onConnected()
590 // bridge.setMyFontSize()
591 // bridge.resizeComputed()
592 // bridge.setFontSize()
593 // bridge.parentChanged() here is on the wrong thread
594 try {
595 parent.notifyUser(String.format("%d x %d", columns, rows));
596 }
597 catch (Exception e) {
598 Log.e(TAG, "Problem while trying to notify user", e);
599 }
600
587 Log.i(TAG, String.format("parentChanged() now width=%d, height=%d", columns, rows)); 601 Log.i(TAG, String.format("parentChanged() now width=%d, height=%d", columns, rows));
588 } 602 }
589 603
590 /** 604 /**
591 * Somehow our parent {@link TerminalView} was destroyed. Now we don't need 605 * Somehow our parent {@link TerminalView} was destroyed. Now we don't need