diff --git a/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/textcanvas/TextCanvas.java b/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/textcanvas/TextCanvas.java index 4d0ceee2814..d42eb2a3aa6 100644 --- a/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/textcanvas/TextCanvas.java +++ b/terminal/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/textcanvas/TextCanvas.java @@ -8,6 +8,7 @@ * Contributors: * Michael Scharf (Wind River) - initial API and implementation * Michael Scharf (Wind River) - [240098] The cursor should not blink when the terminal is disconnected + * Uwe Stieber (Wind River) - [281238] The very first few characters might be missing in the terminal control if opened and connected programmatically *******************************************************************************/ package org.eclipse.tm.internal.terminal.textcanvas; @@ -177,14 +178,14 @@ public class TextCanvas extends GridCanvas { fMinLines = minLines; } - protected void onResize() { + protected void onResize(boolean init) { if(fResizeListener!=null) { Rectangle bonds=getClientArea(); int lines=bonds.height/getCellHeight(); int columns=bonds.width/getCellWidth(); // when the view is minimised, its size is set to 0 // we don't sent this to the terminal! - if(lines>0 && columns>0) { + if(lines>0 && columns>0 || init) { if(columns