-
Notifications
You must be signed in to change notification settings - Fork 0
/
GroundTypes.fs
40 lines (32 loc) · 886 Bytes
/
GroundTypes.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace fitz
[<AutoOpen>]
module GroundTypes =
/// An alias for TimeZoneInfo
type TimeZone = System.TimeZoneInfo
/// An alias for Color
type Color = System.Drawing.Color
/// A labeled TimeZone
type Location = { Name : string; TimeZone : TimeZone }
/// Describes what type of plot kind we should use
type Context =
| Normal
| Morning
| Day
| Evening
| Night
/// Describes the SGR options
type Attribute =
| Bold
| Blink
| Reverse
| Underline
| Dim
| Italic
| Strikethrough
/// A record to hold all the SGR attributes
type Style =
{ Foreground : Color option
Background : Color option
Attributes : Attribute list }
/// Represents a character with a style
type Cell = { Char : char; Style : Style }