Commit | Line | Data |
---|---|---|
7f918cf1 CE |
1 | (* Copyright (C) 2009 Matthew Fluet. |
2 | * Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh | |
3 | * Jagannathan, and Stephen Weeks. | |
4 | * | |
5 | * MLton is released under a BSD-style license. | |
6 | * See the file MLton-LICENSE for details. | |
7 | *) | |
8 | ||
9 | signature CONSOLE = | |
10 | sig | |
11 | structure Background: | |
12 | sig | |
13 | datatype t = | |
14 | Black | Red | Green | Brown | Blue | Magenta | Cyan | Gray | |
15 | end | |
16 | ||
17 | structure Foreground: | |
18 | sig | |
19 | datatype t = | |
20 | DarkGray | BrightRed | BrightGreen | Yellow | BrightBlue | |
21 | | BrightMagenta | BrightCyan | White | |
22 | end | |
23 | ||
24 | structure CharRendition: | |
25 | sig | |
26 | datatype t = | |
27 | Default (* Normal, UnderlineOff, ReverseVideoOf,f BlinkOff *) | |
28 | | Bold | |
29 | | Dim | |
30 | | Normal | |
31 | | UnderlineOn | |
32 | | UnderlineOff | |
33 | | UnderlineOnDefaultForeground | |
34 | | UnderlineOffDefaultForeground | |
35 | | BlinkOn | |
36 | | BlinkOff | |
37 | | ReverseVideoOn | |
38 | | ReverseVideoOff | |
39 | | Foreground of Foreground.t | |
40 | | Background of Background.t | |
41 | ||
42 | val set: t list -> string | |
43 | end | |
44 | ||
45 | val moveToColumn: int -> string | |
46 | end |