Skip to content

Commit

Permalink
JBIDE-18179: Use a maximum sized terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
koentsje committed Oct 2, 2014
1 parent 611cda5 commit 483ef5a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.jboss.forge.addon.resource.ResourceFactory;
import org.jboss.forge.addon.shell.spi.ShellHandle;
import org.jboss.forge.addon.shell.spi.ShellHandleSettings;
import org.jboss.forge.addon.shell.spi.Terminal;
import org.jboss.forge.addon.shell.spi.command.CdTokenHandler;
import org.jboss.forge.addon.shell.spi.command.CdTokenHandlerFactory;
import org.jboss.forge.addon.ui.command.AbstractCommandExecutionListener;
Expand All @@ -29,15 +30,15 @@

public class AeshConsole extends AbstractConsole {

private TextViewerTerminal terminal;
private Terminal terminal;
private ShellHandle handle;
private CommandLineListener executionListener = new CommandLineListener();
private ListenerRegistration<CdTokenHandler> tokenHandler;

private Resource<?> currentResource;

public AeshConsole(ITextViewer textViewer) {
this.terminal = new TextViewerTerminal(textViewer);
this.terminal = new MaxSizeTerminal();
}

public void start() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package org.jboss.tools.forge.ui.internal.cli;

import java.io.IOException;

import org.jboss.forge.addon.shell.spi.Terminal;

public class MaxSizeTerminal implements Terminal {

@Override
public void close() throws IOException {
}

@Override
public int getHeight() {
return Integer.MAX_VALUE;
}

@Override
public int getWidth() {
return Integer.MAX_VALUE;
}

@Override
public void initialize() {
}

}

0 comments on commit 483ef5a

Please sign in to comment.