Package com.sshtools.daemon.terminal
Class Editline
- java.lang.Object
-
- com.sshtools.daemon.terminal.Editline
-
public class Editline extends java.lang.Object- Version:
- $Revision: 1.12 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description Editline(TerminalIO io)Creates a new Editline object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(char ch)voidappend(java.lang.String str)voidclear()voiddraw()intgetCursorPosition()java.lang.StringgetHardwrap()java.lang.StringgetSoftwrap()java.lang.StringgetValue()booleanisHardwrapped()booleanisInInsertMode()voidmaskInput(boolean maskInput)intrun()voidsetCursorPosition(int pos)voidsetHardwrapped(boolean b)voidsetInsertMode(boolean b)voidsetMask(char mask)voidsetValue(java.lang.String str)intsize()
-
-
-
Constructor Detail
-
Editline
public Editline(TerminalIO io)
Creates a new Editline object.- Parameters:
io-
-
-
Method Detail
-
size
public int size()
-
getValue
public java.lang.String getValue()
-
setValue
public void setValue(java.lang.String str) throws BufferOverflowException, java.io.IOException- Throws:
BufferOverflowExceptionjava.io.IOException
-
maskInput
public void maskInput(boolean maskInput)
-
setMask
public void setMask(char mask)
- Parameters:
mask-
-
clear
public void clear() throws java.io.IOException- Throws:
java.io.IOException
-
getSoftwrap
public java.lang.String getSoftwrap() throws java.lang.IndexOutOfBoundsException, java.io.IOException- Throws:
java.lang.IndexOutOfBoundsExceptionjava.io.IOException
-
getHardwrap
public java.lang.String getHardwrap() throws java.lang.IndexOutOfBoundsException, java.io.IOException- Throws:
java.lang.IndexOutOfBoundsExceptionjava.io.IOException
-
append
public void append(char ch) throws BufferOverflowException, java.io.IOException- Throws:
BufferOverflowExceptionjava.io.IOException
-
append
public void append(java.lang.String str) throws BufferOverflowException, java.io.IOException- Throws:
BufferOverflowExceptionjava.io.IOException
-
getCursorPosition
public int getCursorPosition()
-
setCursorPosition
public void setCursorPosition(int pos)
-
isInInsertMode
public boolean isInInsertMode()
-
setInsertMode
public void setInsertMode(boolean b)
-
isHardwrapped
public boolean isHardwrapped()
-
setHardwrapped
public void setHardwrapped(boolean b)
-
run
public int run()
-
draw
public void draw() throws java.io.IOException- Throws:
java.io.IOException
-
-