Package com.sshtools.daemon.terminal
Class UserInput
java.lang.Object
com.sshtools.daemon.terminal.UserInput
- All Implemented Interfaces:
Runnable
- Version:
- $Revision: 1.12 $
- Author:
- $author$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(char ch) voidvoidclear()voiddraw()intgetValue()booleanbooleanvoidmaskInput(boolean maskInput) voidrun()voidsetCursorPosition(int pos) voidsetHardwrapped(boolean b) voidsetInsertMode(boolean b) voidsetMask(char mask) voidintsize()
-
Constructor Details
-
UserInput
Creates a new UserInput object.- Parameters:
io-pout-
-
-
Method Details
-
size
public int size() -
getValue
-
setValue
- Throws:
BufferOverflowExceptionIOException
-
maskInput
public void maskInput(boolean maskInput) -
setMask
public void setMask(char mask) - Parameters:
mask-
-
clear
- Throws:
IOException
-
getSoftwrap
- Throws:
IndexOutOfBoundsExceptionIOException
-
getHardwrap
- Throws:
IndexOutOfBoundsExceptionIOException
-
append
- Throws:
BufferOverflowExceptionIOException
-
append
- Throws:
BufferOverflowExceptionIOException
-
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 void run() -
draw
- Throws:
IOException
-