Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions source/dcell/attr.d
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Attributes module for dcell.
*
* Copyright: Copyright 2022 Garrett D'Amore
* Copyright: Copyright 2025 Garrett D'Amore
* Authors: Garrett D'Amore
* License:
* Distributed under the Boost Software License, Version 1.0.
Expand All @@ -13,7 +13,7 @@ module dcell.attr;
/**
* Text attributes that do not include color.
*/
enum Attr : int
enum Attr
{
none = 0, /// normal, plain text
bold = 1 << 0,
Expand All @@ -23,5 +23,6 @@ enum Attr : int
dim = 1 << 4,
italic = 1 << 5,
strikethrough = 1 << 6,
invalid = -1, // invalid attribute
invalid = 1 << 7, // invalid attribute
init = invalid,
}
2 changes: 1 addition & 1 deletion source/dcell/cell.d
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ class CellBuffer
assert(cb.dirty(Coord(2, 0)));

st.attr = Attr.reverse;
st.bg = Color.none;
st.bg = Color.invalid;
st.fg = Color.maroon;
cb.fill("%", st);
assert(cb[1, 1].text == "%");
Expand Down
Loading