class LineReader extends AnyRef
Encapsulates the common configuration and logic around reading a single line of input
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LineReader
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new LineReader(width: Int, prompt: Prompt, reader: Reader, writer: Writer, filters: Filter, displayTransform: (Vector[Char], Int) ⇒ (Str, Int) = LineReader.noTransform)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- lazy val ansi: AnsiNav
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def computeRendered(lastState: TermState): (Int, Str)
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
readChar(lastState: TermState, ups: Int, fullPrompt: Boolean = true): Option[String]
- Annotations
- @tailrec()
-
def
redrawLine(buffer: Str, cursor: Int, ups: Int, rowLengths: IndexedSeq[Int], fullPrompt: Boolean = true, newlinePrompt: Boolean = false): Unit
Erases the previous line and re-draws it with the new buffer and cursor.
Erases the previous line and re-draws it with the new buffer and cursor.
Relies on
ups
to know how "tall" the previous line was, to go up and erase that many rows in the console. Performs a lot of horrific math all over the place, incredibly prone to off-by-ones, in order to at the end of the day position the cursor in the right spot. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()