Last active
June 4, 2020 11:42
-
-
Save dariathecracker/1f4cc7247ba1a08a84920704d582314a to your computer and use it in GitHub Desktop.
Clearing the console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ioleo.tictactoe.cli | |
import zio.ZIO | |
import zio.macros.annotation.{accessible, mockable} | |
@accessible(">") | |
@mockable | |
trait Terminal { | |
val terminal: Terminal.Service[Any] | |
} | |
object Terminal { | |
trait Service[R] { | |
val getUserInput: ZIO[R, Nothing, String] | |
def display(frame: String): ZIO[R, Nothing, Unit] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment