ammonite.terminal

Members list

Concise view

Type members

Classlikes

class AnsiNav(output: Writer)

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object AnsiNav

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
AnsiNav.type
case class ClearScreen(ts: TermState) extends TermAction

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
final class ConsoleDim

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object ConsoleDim

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object Debug

Prints stuff to an ad-hoc logging file when running the ammonite repl or ammonite-terminal in development mode in its SBT project.

Prints stuff to an ad-hoc logging file when running the ammonite repl or ammonite-terminal in development mode in its SBT project.

Very handy for the common case where you're debugging terminal interactions and cannot use println because it will stomp all over your already messed up terminal state and block debugging. With Debug, you can have a separate terminal open tailing the log file and log as verbosely as you want without affecting the primary terminal you're using to interact with Ammonite.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Debug.type
abstract class DelegateFilter(implicit val enclosing: Enclosing) extends Filter

A filter as an abstract class, letting you provide a filter instead of an op, automatically providing a good .toString for debugging, and providing a reasonable "place" inside the inheriting class/object to put state or helpers or other logic associated with the filter.

A filter as an abstract class, letting you provide a filter instead of an op, automatically providing a good .toString for debugging, and providing a reasonable "place" inside the inheriting class/object to put state or helpers or other logic associated with the filter.

Attributes

Graph
Supertypes
trait Filter
class Object
trait Matchable
class Any
Known subtypes
abstract class Enum(implicit enumName: Name)

A small helper class to quickly define enumerations: extend this class in your companion object and define the items via val a, b, c = Item(...) passing in your enum class constructor in place of ....

A small helper class to quickly define enumerations: extend this class in your companion object and define the items via val a, b, c = Item(...) passing in your enum class constructor in place of ....

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object UndoState.type
case object Exit extends TermAction

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Exit.type
trait Filter

The way you configure your terminal behavior; a trivial wrapper around a function, though you should provide a good .toString method to make debugging easier. The TermInfo and TermAction types are its interface to the terminal.

The way you configure your terminal behavior; a trivial wrapper around a function, though you should provide a good .toString method to make debugging easier. The TermInfo and TermAction types are its interface to the terminal.

Filters are composed sequentially: if a filter returns None the next filter is tried, while if a filter returns Some that ends the cascade. While your op function interacts with the terminal purely through immutable case classes, the Filter itself is free to maintain its own state and mutate it whenever, even when returning None to continue the cascade.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Filter

Convenience constructors to create Filter instances in a bunch of different ways

Convenience constructors to create Filter instances in a bunch of different ways

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Filter.type

A collection of helpers that to simpify the common case of building filters

A collection of helpers that to simpify the common case of building filters

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class LazyList[T](headThunk: () => T, tailThunk: () => LazyList[T])

A truly-lazy implementation of scala.Stream

A truly-lazy implementation of scala.Stream

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object LazyList

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
class LineReader(width: Int, prompt: Prompt, reader: Reader, writer: Writer, filters: Filter, displayTransform: (Vector[Char], Int) => (Str, Int))

Encapsulates the common configuration and logic around reading a single line of input

Encapsulates the common configuration and logic around reading a single line of input

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object LineReader

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Printing(ts: TermState, stdout: String) extends TermAction

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class Prompt(full: Str, lastLine: Str)

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Prompt

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Prompt.type
case class Result(s: String) extends TermAction

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

One place to assign all the esotic control key input snippets to easy-to-remember names

One place to assign all the esotic control key input snippets to easy-to-remember names

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class Strings(values: Seq[String])

Implicitly instantiated class letting you pass in a single string or a sequence of strings anywhere a set of prefixes is required

Implicitly instantiated class letting you pass in a single string or a sequence of strings anywhere a set of prefixes is required

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Strings

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Strings.type
object TTY

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TTY.type
sealed trait TermAction

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Exit.type
class Printing
class Result
class TermState
case class TermInfo(ts: TermState, width: Int)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class TermState(inputs: LazyList[Int], buffer: Vector[Char], cursor: Int, msg: Str) extends TermAction

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object TermState

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object Terminal

The core logic around a terminal; it defines the base filters API through which anything (including basic cursor-navigation and typing) interacts with the terminal.

The core logic around a terminal; it defines the base filters API through which anything (including basic cursor-navigation and typing) interacts with the terminal.

Maintains basic invariants, such as "cursor should always be within the buffer", and "ansi terminal should reflect most up to date TermState"

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type