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 TypeMethodDescriptionvoid
append
(char ch) void
void
clear()
void
draw()
int
getValue()
boolean
boolean
void
maskInput
(boolean maskInput) void
run()
void
setCursorPosition
(int pos) void
setHardwrapped
(boolean b) void
setInsertMode
(boolean b) void
setMask
(char mask) void
int
size()
-
Constructor Details
-
UserInput
Creates a new UserInput object.- Parameters:
io
-pout
-
-
-
Method Details
-
size
public int size() -
getValue
-
setValue
- Throws:
BufferOverflowException
IOException
-
maskInput
public void maskInput(boolean maskInput) -
setMask
public void setMask(char mask) - Parameters:
mask
-
-
clear
- Throws:
IOException
-
getSoftwrap
- Throws:
IndexOutOfBoundsException
IOException
-
getHardwrap
- Throws:
IndexOutOfBoundsException
IOException
-
append
- Throws:
BufferOverflowException
IOException
-
append
- Throws:
BufferOverflowException
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 void run() -
draw
- Throws:
IOException
-