org.crsh.io
Interface ScreenContext<E>

Type Parameters:
E - the element generic type
All Superinterfaces:
Flushable, Pipe<E>
All Known Subinterfaces:
Filter<C,P>, InteractionContext<E>, InvocationContext<P>, ProducerContext<P>, ShellProcessContext
All Known Implementing Classes:
ChunkAdapter, ClientProcessContext, InnerInvocationContext, InvocationContextImpl, InvokerPipeFilter, JLineProcessContext, ProcessContext, ProcessInvocationContext, RenderAppendable, RenderWriter, SinkPipeFilter, ToChunkPipeFilter

public interface ScreenContext<E>
extends Pipe<E>

The screen context extends the pipe 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.Pipe
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 © 2012 eXo Platform SAS. All Rights Reserved.