mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
Merge "Bug 468858 - initialize terminal size to fix line wrapping"
This commit is contained in:
commit
b11f92c8b8
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,8 @@ import org.eclipse.remote.core.IRemoteProcessService;
|
|||
import org.eclipse.remote.core.IRemoteProcessTerminalService;
|
||||
import org.eclipse.remote.core.IRemoteServicesManager;
|
||||
import org.eclipse.remote.core.exception.RemoteConnectionException;
|
||||
import org.eclipse.tm.internal.terminal.emulator.VT100Emulator;
|
||||
import org.eclipse.tm.internal.terminal.emulator.VT100TerminalControl;
|
||||
import org.eclipse.tm.internal.terminal.provisional.api.ITerminalControl;
|
||||
import org.eclipse.tm.internal.terminal.provisional.api.TerminalState;
|
||||
import org.eclipse.tm.terminal.connector.remote.IRemoteTerminalConstants;
|
||||
|
@ -122,6 +124,9 @@ public class RemoteConnectionManager extends Job {
|
|||
control.setState(TerminalState.CONNECTED);
|
||||
control.setTerminalTitle(remoteConnection.getName());
|
||||
connector.setOutputStream(remoteProcess.getOutputStream());
|
||||
// Initialize terminal size
|
||||
VT100Emulator text = ((VT100TerminalControl) control).getTerminalText();
|
||||
text.fontChanged();
|
||||
|
||||
// read data until the connection gets terminated
|
||||
readData(connector.getInputStream());
|
||||
|
|
Loading…
Add table
Reference in a new issue