Skip to content

Commit

Permalink
Rename Funnel to Spool
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jul 1, 2024
1 parent e2ddd00 commit fbc5938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/screen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ case class PtyState
link: Text = t"")

object Pty:
def apply(width: Int, height: Int): Pty = Pty(ScreenBuffer(width, height), PtyState(), Funnel())
def apply(width: Int, height: Int): Pty = Pty(ScreenBuffer(width, height), PtyState(), Spool())

def stream(pty: Pty, in: LazyList[Text]): LazyList[Pty] raises PtyEscapeError = in match
case head #:: tail =>
Expand Down Expand Up @@ -77,7 +77,7 @@ import PtyEscapeError.Reason, Reason.*
case class PtyEscapeError(reason: Reason)
extends Error(m"an ANSI escape code could not be handled because $reason")

case class Pty(buffer: ScreenBuffer, state0: PtyState, output: Funnel[Text]):
case class Pty(buffer: ScreenBuffer, state0: PtyState, output: Spool[Text]):
def stream: LazyList[Text] = output.stream

def consume(input: Text): Pty raises PtyEscapeError =
Expand Down

0 comments on commit fbc5938

Please sign in to comment.