Proper unicode support

This commit is contained in:
Zachary Yedidia
2016-03-11 15:37:50 -05:00
parent 24ce1d6b42
commit a74031c1c8
3 changed files with 29 additions and 30 deletions

View File

@@ -136,12 +136,12 @@ class View {
foreach (_; 0 .. maxLength - lineNum.length) {
setCell(cast(int) x++, cast(int) y, ' ', Color.default_, Color.black);
}
foreach (ch; lineNum) {
foreach (dchar ch; lineNum) {
setCell(cast(int) x++, cast(int) y, ch, Color.default_, Color.black);
}
setCell(cast(int) x++, cast(int) y, ' ', Color.default_ | Attribute.bold, Color.black);
foreach (ch; line) {
foreach (dchar ch; line) {
setCell(cast(int) x++, cast(int) y, ch, Color.default_, Color.default_);
}
y++;