org.crsh.text
Interface ScreenContext

All Superinterfaces:
Appendable, Screenable
All Known Subinterfaces:
CommandContext<P>, InteractionContext, InvocationContext<P>, ShellProcessContext, Term
All Known Implementing Classes:
AbstractInvocationContext, ClientProcessContext, CommandInvokerAdapter, ConsoleTerm, CRaSHProcessContext, InvocationContextImpl, PipeLineInvocationContext, ProcessContext, ProcessHandler, Processor, RenderAppendable, SSHInlineShellProcessContext, VirtualScreen

public interface ScreenContext
extends Screenable

The screen context extends the Screenable and add information about the screen.


Method Summary
 void flush()
          Flush the stream.
 int getHeight()
          Returns the screen height in chars.
 int getWidth()
          Returns the screen width in chars.
 
Methods inherited from interface org.crsh.text.Screenable
append, cls
 
Methods inherited from interface java.lang.Appendable
append, append, append
 

Method Detail

getWidth

int getWidth()
Returns the screen width in chars. When the value is not positive it means the value could not be determined.

Returns:
the term width

getHeight

int getHeight()
Returns the screen height in chars. When the value is not positive it means the value could not be determined.

Returns:
the term height

flush

void flush()
           throws IOException
Flush the stream.

Throws:
IOException - any io exception


Copyright © 2015 eXo Platform SAS. All Rights Reserved.