org.crsh.ssh.term.inline
Class SSHInlineShellProcessContext

java.lang.Object
  extended by org.crsh.ssh.term.inline.SSHInlineShellProcessContext
All Implemented Interfaces:
Appendable, InteractionContext, ShellProcessContext, Screenable, ScreenContext

public class SSHInlineShellProcessContext
extends Object
implements ShellProcessContext

ShellProcessContext for SSH inline commands


Method Summary
 Appendable append(char c)
           
 Appendable append(CharSequence s)
           
 Appendable append(CharSequence csq, int start, int end)
           
 Screenable append(Style style)
           
 Screenable cls()
           
 void end(ShellResponse response)
           
 SSHInlineShellProcessContext execute()
           
 void flush()
           
 int getHeight()
           
 String getProperty(String name)
           
 int getWidth()
           
 String readLine(String msg, boolean echo)
           
 boolean releaseAlternateBuffer()
           
 boolean takeAlternateBuffer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

execute

public SSHInlineShellProcessContext execute()

takeAlternateBuffer

public boolean takeAlternateBuffer()
Specified by:
takeAlternateBuffer in interface InteractionContext

releaseAlternateBuffer

public boolean releaseAlternateBuffer()
Specified by:
releaseAlternateBuffer in interface InteractionContext

getWidth

public int getWidth()
Specified by:
getWidth in interface ScreenContext

getHeight

public int getHeight()
Specified by:
getHeight in interface ScreenContext

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface InteractionContext

readLine

public String readLine(String msg,
                       boolean echo)
Specified by:
readLine in interface InteractionContext

append

public Appendable append(char c)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public Appendable append(CharSequence s)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public Appendable append(CharSequence csq,
                         int start,
                         int end)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public Screenable append(Style style)
                  throws IOException
Specified by:
append in interface Screenable
Throws:
IOException

cls

public Screenable cls()
               throws IOException
Specified by:
cls in interface Screenable
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface ScreenContext
Throws:
IOException

end

public void end(ShellResponse response)
Specified by:
end in interface ShellProcessContext


Copyright © 2015 eXo Platform SAS. All Rights Reserved.