emulator.writeRemote("\033[8;" + getHeight() + ";" +
getWidth() + "t");
}
+
+ // Pass the correct text cell width/height to the emulator
+ if (getScreen() != null) {
+ emulator.setTextWidth(getScreen().getTextWidth());
+ emulator.setTextHeight(getScreen().getTextHeight());
+ }
}
return;
onResize(new TResizeEvent(TResizeEvent.Type.WIDGET, getWidth(),
getHeight()));
- // Pass the correct text cell width/height to the emulator
- emulator.setTextWidth(getScreen().getTextWidth());
- emulator.setTextHeight(getScreen().getTextHeight());
-
// Hide mouse when typing option
if (System.getProperty("jexer.TTerminal.hideMouseWhenTyping",
"true").equals("false")) {