org.crsh.shell
Interface ScreenContext<E>

Type Parameters:
E - the element generic type
All Superinterfaces:
Consumer<E>, Flushable
All Known Subinterfaces:
CommandContext<P>, InteractionContext<E>, InvocationContext<P>, ShellProcessContext, Term
All Known Implementing Classes:
ChunkAdapter, ClientProcessContext, ConsoleTerm, CRaSHProcessContext, InnerInvocationContext, InvocationContextImpl, JLineProcessContext, Pipe, PipeFilter, PipeFilter.Chunkizer, PipeFilter.Noop, PipeFilter.Sink, ProcessContext, RenderAppendable, RenderWriter, SSHInlineShellProcessContext

public interface ScreenContext<E>
extends Consumer<E>

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


Method Summary
 int getHeight()
          Returns the screen height in chars.
 int getWidth()
          Returns the screen width in chars.
 
Methods inherited from interface org.crsh.io.Consumer
getConsumedType, provide
 
Methods inherited from interface java.io.Flushable
flush
 

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


Copyright © 2014 eXo Platform SAS. All Rights Reserved.