diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-09-25 23:51:12 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-09-25 23:51:12 +0000 |
| commit | 6ff06ca98523f7aff016cbc8d00b9faa756739db (patch) | |
| tree | 08ea37f839a2b89e7e03d7f651b9e7fee5f963a7 /src/display_buffer.hh | |
| parent | 639897517a2fabc78d274fb17fe57c21e951bf83 (diff) | |
DisplayBuffer: cleanup
Diffstat (limited to 'src/display_buffer.hh')
| -rw-r--r-- | src/display_buffer.hh | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 37c5cbfc..fd609134 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -7,12 +7,28 @@ namespace Kakoune { -typedef int Color; typedef int Attribute; enum Attributes { - UNDERLINE = 1 + Normal = 0, + Underline = 1, + Reverse = 2, + Blink = 4, + Bold = 8, +}; + +enum class Color +{ + Default, + Black, + Red, + Green, + Yellow, + Blue, + Magenta, + Cyan, + White }; struct DisplayAtom @@ -22,7 +38,11 @@ struct DisplayAtom Color bg_color; Attribute attribute; - DisplayAtom() : fg_color(0), bg_color(0), attribute(0) {} + DisplayAtom() + : fg_color(Color::Default), + bg_color(Color::Default), + attribute(Attributes::Normal) + {} }; class DisplayBuffer |
