Skip to content

Commit 41c455f

Browse files
committed
fixed..
1 parent bfe008d commit 41c455f

File tree

1 file changed

+33
-32
lines changed

1 file changed

+33
-32
lines changed

examples/acs_vars.d

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,140 +1,141 @@
11
//regretfully modified by: 1100110
22

33
import std.string: toStringz;
4-
import ncurses;
4+
import curses;
55

66
void main()
77
{
88
initscr();
99

1010
//Please note: you might want to maximize your terminal before you try to
1111
//run this. It does not check the size or enable scrolling.
12+
//In other word, if your terminal is <= 23 by 79, it will do weird things.
1213
//That is left as an exersize for the reader.
1314
//Plus I'm lazy and I still have to port the rest of the tutorials.. ;)
1415
//The spaces are for readability on the screen when you run the program.
1516

1617
printw(toStringz("Upper left corner "));
17-
addch(acs_map[ACS.ULCORNER]);
18+
addch(ACS_ULCORNER());
1819
printw("\n");
1920

2021
printw(toStringz("Lower left corner "));
21-
addch(acs_map[ACS.LLCORNER]);
22+
addch(ACS_LLCORNER());
2223
printw("\n");
2324

2425
printw(toStringz("Lower right corner "));
25-
addch(acs_map[ACS.LRCORNER]);
26+
addch(ACS_LRCORNER());
2627
printw("\n");
2728

2829
printw(toStringz("Tee pointing right "));
29-
addch(acs_map[ACS.LTEE]);
30+
addch(ACS_LTEE());
3031
printw("\n");
3132

3233
printw(toStringz("Tee pointing left "));
33-
addch(acs_map[ACS.RTEE]);
34+
addch(ACS_RTEE());
3435
printw("\n");
3536

3637
printw(toStringz("Tee pointing up "));
37-
addch(acs_map[ACS.BTEE]);
38+
addch(ACS_BTEE());
3839
printw("\n");
3940

4041
printw(toStringz("Tee pointing down "));
41-
addch(acs_map[ACS.TTEE]);
42+
addch(ACS_TTEE());
4243
printw("\n");
4344

4445
printw(toStringz("Horizontal line "));
45-
addch(acs_map[ACS.HLINE]);
46+
addch(ACS_HLINE());
4647
printw("\n");
4748

4849
printw(toStringz("Vertical line "));
49-
addch(acs_map[ACS.VLINE]);
50+
addch(ACS_VLINE());
5051
printw("\n");
5152

5253
printw(toStringz("Large Plus or cross over "));
53-
addch(acs_map[ACS.PLUS]);
54+
addch(ACS_PLUS());
5455
printw("\n");
5556

5657
printw(toStringz("Scan Line 1 "));
57-
addch(acs_map[ACS.S1]);
58+
addch(ACS_S1());
5859
printw("\n");
5960

6061
printw(toStringz("Scan Line 3 "));
61-
addch(acs_map[ACS.S3]);
62+
addch(ACS_S3());
6263
printw("\n");
6364

6465
printw(toStringz("Scan Line 7 "));
65-
addch(acs_map[ACS.S7]);
66+
addch(ACS_S7());
6667
printw("\n");
6768

6869
printw(toStringz("Scan Line 9 "));
69-
addch(acs_map[ACS.S9]);
70+
addch(ACS_S9());
7071
printw("\n");
7172

7273
printw(toStringz("Diamond "));
73-
addch(acs_map[ACS.DIAMOND]);
74+
addch(ACS_DIAMOND());
7475
printw("\n");
7576

7677
printw(toStringz("Checker board (stipple) "));
77-
addch(acs_map[ACS.CKBOARD]);
78+
addch(ACS_CKBOARD());
7879
printw("\n");
7980

8081
printw(toStringz("Degree Symbol "));
81-
addch(acs_map[ACS.DEGREE]);
82+
addch(ACS_DEGREE());
8283
printw("\n");
8384

8485
printw(toStringz("Plus/Minus Symbol "));
85-
addch(acs_map[ACS.PLMINUS]);
86+
addch(ACS_PLMINUS());
8687
printw("\n");
8788

8889
printw(toStringz("Bullet "));
89-
addch(acs_map[ACS.BULLET]);
90+
addch(ACS_BULLET());
9091
printw("\n");
9192

9293
printw(toStringz("Arrow Pointing Left "));
93-
addch(acs_map[ACS.LARROW]);
94+
addch(ACS_LARROW());
9495
printw("\n");
9596

9697
printw(toStringz("Arrow Pointing Right "));
97-
addch(acs_map[ACS.RARROW]);
98+
addch(ACS_RARROW());
9899
printw("\n");
99100

100101
printw(toStringz("Arrow Pointing Down "));
101-
addch(acs_map[ACS.DARROW]);
102+
addch(ACS_DARROW());
102103
printw("\n");
103104

104105
printw(toStringz("Arrow Pointing Up "));
105-
addch(acs_map[ACS.UARROW]);
106+
addch(ACS_UARROW());
106107
printw("\n");
107108

108109
printw(toStringz("Board of squares "));
109-
addch(acs_map[ACS.BOARD]);
110+
addch(ACS_BOARD());
110111
printw("\n");
111112

112113
printw(toStringz("Lantern Symbol "));
113-
addch(acs_map[ACS.LANTERN]);
114+
addch(ACS_LANTERN());
114115
printw("\n");
115116

116117
printw(toStringz("Solid Square Block "));
117-
addch(acs_map[ACS.BLOCK]);
118+
addch(ACS_BLOCK());
118119
printw("\n");
119120

120121
printw(toStringz("Less/Equal sign "));
121-
addch(acs_map[ACS.LEQUAL]);
122+
addch(ACS_LEQUAL());
122123
printw("\n");
123124

124125
printw(toStringz("Greater/Equal sign "));
125-
addch(acs_map[ACS.GEQUAL]);
126+
addch(ACS_GEQUAL());
126127
printw("\n");
127128

128129
printw(toStringz("Pi "));
129-
addch(acs_map[ACS.PI]);
130+
addch(ACS_PI());
130131
printw("\n");
131132

132133
printw(toStringz("Not equal "));
133-
addch(acs_map[ACS.NEQUAL]);
134+
addch(ACS_NEQUAL());
134135
printw("\n");
135136

136137
printw(toStringz("UK pound sign "));
137-
addch(acs_map[ACS.STERLING]);
138+
addch(ACS_STERLING());
138139
printw("\n");
139140

140141
refresh();

0 commit comments

Comments
 (0)