com.raelity.jvi
Class GetChar
java.lang.Object
com.raelity.jvi.GetChar
public class GetChar
- extends Object
Method Summary |
static void |
flush_buffers(boolean typeahead)
Remove the contents of the stuff buffer and the mapped characters in the
typeahead buffer (used in case of an error). |
static boolean |
getRecordedLine(StringBuffer sb)
read from the typebuf until a CR, return what was read, discarding
the CR. |
static void |
userInput(String s)
Write a stuff to the script and/or record buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetChar
public GetChar()
getRecordedLine
public static boolean getRecordedLine(StringBuffer sb)
- read from the typebuf until a CR, return what was read, discarding
the CR. If the input stream empties, just return what was available.
- Returns:
- true when a CR was encountered, else false
userInput
public static void userInput(String s)
- Write a stuff to the script and/or record buffer.
Used to stash command entry input.
flush_buffers
public static void flush_buffers(boolean typeahead)
- Remove the contents of the stuff buffer and the mapped characters in the
typeahead buffer (used in case of an error). If 'typeahead' is true,
flush all typeahead characters (used when interrupted by a CTRL-C).