package vt100 type ( Normal string Bold string Underline string Blink string Inverse string DoubleWidth string DoubleHeight string DoubleHeightTop string DoubleHeightBottom string ) var ( esc = string(033) normal = esc + "[0m" bold = esc + "[1m" underline = esc + "[4m" blink = esc + "[5m" inverse = esc + "[7m" doubleWidth = esc + "#6" doubleHeightTop = esc + "#3" doubleHeightBottom = esc + "#4" ) func (s Normal) String() string { return normal + string(s) + normal } func (s Bold) String() string { return bold + string(s) + normal } func (s Underline) String() string { return underline + string(s) + normal } func (s Blink) String() string { return blink + string(s) + normal } func (s Inverse) String() string { return inverse + string(s) + normal } func (s DoubleWidth) String() string { return doubleWidth + string(s) + normal } func (s DoubleHeight) String() string { return DoubleHeightTop(s).String() + "\n" + DoubleHeightBottom(s).String() } func (s DoubleHeightTop) String() string { return doubleHeightTop + string(s) + normal } func (s DoubleHeightBottom) String() string { return doubleHeightBottom + string(s) + normal }