Debian Codegraph @

tests/system/ansi/Main.agda

raw
1 {-# OPTIONS --guardedness #-}
2
3 module Main where
4
5 open import Data.List.Base using ([]; _∷_)
6 open import IO.Base
7 open import IO.Finite
8 open import Function.Base using (_$_)
9 open import System.Console.ANSI
10
11 main : Main
12 main = run $ do
13 putStrLn $ withCommands (setColour foreground classic blue
14 ∷ setColour background classic white
15 ∷ [])
16 "Classic blue on white"
17 putStrLn $ withCommands (setColour foreground classic white
18 ∷ setColour background bright blue
19 ∷ [])
20 "White on bright blue"
21 putStrLn $ withCommands (setWeight bold
22 ∷ setColour foreground bright yellow
23 ∷ setColour background bright blue
24 ∷ [])
25 "Bold bright yellow on bright blue"
26 putStrLn $ withCommands (setStyle italic
27 ∷ setColour foreground bright red
28 ∷ setColour background classic yellow
29 ∷ [])
30 "Italic bright red on yellow"
31 putStrLn $ withCommands (setBlinking rapid
32 ∷ setUnderline double
33 ∷ setWeight bold
34 ∷ setColour background classic red
35 ∷ setColour foreground bright black
36 ∷ [])
37 "PARTYYYY"