|
1 | 1 | //regretfully modified by: 1100110
|
2 | 2 |
|
3 | 3 | import std.string: toStringz;
|
4 |
| -import ncurses; |
| 4 | +import curses; |
5 | 5 |
|
6 | 6 | void main()
|
7 | 7 | {
|
8 | 8 | initscr();
|
9 | 9 |
|
10 | 10 | //Please note: you might want to maximize your terminal before you try to
|
11 | 11 | //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. |
12 | 13 | //That is left as an exersize for the reader.
|
13 | 14 | //Plus I'm lazy and I still have to port the rest of the tutorials.. ;)
|
14 | 15 | //The spaces are for readability on the screen when you run the program.
|
15 | 16 |
|
16 | 17 | printw(toStringz("Upper left corner "));
|
17 |
| - addch(acs_map[ACS.ULCORNER]); |
| 18 | + addch(ACS_ULCORNER()); |
18 | 19 | printw("\n");
|
19 | 20 |
|
20 | 21 | printw(toStringz("Lower left corner "));
|
21 |
| - addch(acs_map[ACS.LLCORNER]); |
| 22 | + addch(ACS_LLCORNER()); |
22 | 23 | printw("\n");
|
23 | 24 |
|
24 | 25 | printw(toStringz("Lower right corner "));
|
25 |
| - addch(acs_map[ACS.LRCORNER]); |
| 26 | + addch(ACS_LRCORNER()); |
26 | 27 | printw("\n");
|
27 | 28 |
|
28 | 29 | printw(toStringz("Tee pointing right "));
|
29 |
| - addch(acs_map[ACS.LTEE]); |
| 30 | + addch(ACS_LTEE()); |
30 | 31 | printw("\n");
|
31 | 32 |
|
32 | 33 | printw(toStringz("Tee pointing left "));
|
33 |
| - addch(acs_map[ACS.RTEE]); |
| 34 | + addch(ACS_RTEE()); |
34 | 35 | printw("\n");
|
35 | 36 |
|
36 | 37 | printw(toStringz("Tee pointing up "));
|
37 |
| - addch(acs_map[ACS.BTEE]); |
| 38 | + addch(ACS_BTEE()); |
38 | 39 | printw("\n");
|
39 | 40 |
|
40 | 41 | printw(toStringz("Tee pointing down "));
|
41 |
| - addch(acs_map[ACS.TTEE]); |
| 42 | + addch(ACS_TTEE()); |
42 | 43 | printw("\n");
|
43 | 44 |
|
44 | 45 | printw(toStringz("Horizontal line "));
|
45 |
| - addch(acs_map[ACS.HLINE]); |
| 46 | + addch(ACS_HLINE()); |
46 | 47 | printw("\n");
|
47 | 48 |
|
48 | 49 | printw(toStringz("Vertical line "));
|
49 |
| - addch(acs_map[ACS.VLINE]); |
| 50 | + addch(ACS_VLINE()); |
50 | 51 | printw("\n");
|
51 | 52 |
|
52 | 53 | printw(toStringz("Large Plus or cross over "));
|
53 |
| - addch(acs_map[ACS.PLUS]); |
| 54 | + addch(ACS_PLUS()); |
54 | 55 | printw("\n");
|
55 | 56 |
|
56 | 57 | printw(toStringz("Scan Line 1 "));
|
57 |
| - addch(acs_map[ACS.S1]); |
| 58 | + addch(ACS_S1()); |
58 | 59 | printw("\n");
|
59 | 60 |
|
60 | 61 | printw(toStringz("Scan Line 3 "));
|
61 |
| - addch(acs_map[ACS.S3]); |
| 62 | + addch(ACS_S3()); |
62 | 63 | printw("\n");
|
63 | 64 |
|
64 | 65 | printw(toStringz("Scan Line 7 "));
|
65 |
| - addch(acs_map[ACS.S7]); |
| 66 | + addch(ACS_S7()); |
66 | 67 | printw("\n");
|
67 | 68 |
|
68 | 69 | printw(toStringz("Scan Line 9 "));
|
69 |
| - addch(acs_map[ACS.S9]); |
| 70 | + addch(ACS_S9()); |
70 | 71 | printw("\n");
|
71 | 72 |
|
72 | 73 | printw(toStringz("Diamond "));
|
73 |
| - addch(acs_map[ACS.DIAMOND]); |
| 74 | + addch(ACS_DIAMOND()); |
74 | 75 | printw("\n");
|
75 | 76 |
|
76 | 77 | printw(toStringz("Checker board (stipple) "));
|
77 |
| - addch(acs_map[ACS.CKBOARD]); |
| 78 | + addch(ACS_CKBOARD()); |
78 | 79 | printw("\n");
|
79 | 80 |
|
80 | 81 | printw(toStringz("Degree Symbol "));
|
81 |
| - addch(acs_map[ACS.DEGREE]); |
| 82 | + addch(ACS_DEGREE()); |
82 | 83 | printw("\n");
|
83 | 84 |
|
84 | 85 | printw(toStringz("Plus/Minus Symbol "));
|
85 |
| - addch(acs_map[ACS.PLMINUS]); |
| 86 | + addch(ACS_PLMINUS()); |
86 | 87 | printw("\n");
|
87 | 88 |
|
88 | 89 | printw(toStringz("Bullet "));
|
89 |
| - addch(acs_map[ACS.BULLET]); |
| 90 | + addch(ACS_BULLET()); |
90 | 91 | printw("\n");
|
91 | 92 |
|
92 | 93 | printw(toStringz("Arrow Pointing Left "));
|
93 |
| - addch(acs_map[ACS.LARROW]); |
| 94 | + addch(ACS_LARROW()); |
94 | 95 | printw("\n");
|
95 | 96 |
|
96 | 97 | printw(toStringz("Arrow Pointing Right "));
|
97 |
| - addch(acs_map[ACS.RARROW]); |
| 98 | + addch(ACS_RARROW()); |
98 | 99 | printw("\n");
|
99 | 100 |
|
100 | 101 | printw(toStringz("Arrow Pointing Down "));
|
101 |
| - addch(acs_map[ACS.DARROW]); |
| 102 | + addch(ACS_DARROW()); |
102 | 103 | printw("\n");
|
103 | 104 |
|
104 | 105 | printw(toStringz("Arrow Pointing Up "));
|
105 |
| - addch(acs_map[ACS.UARROW]); |
| 106 | + addch(ACS_UARROW()); |
106 | 107 | printw("\n");
|
107 | 108 |
|
108 | 109 | printw(toStringz("Board of squares "));
|
109 |
| - addch(acs_map[ACS.BOARD]); |
| 110 | + addch(ACS_BOARD()); |
110 | 111 | printw("\n");
|
111 | 112 |
|
112 | 113 | printw(toStringz("Lantern Symbol "));
|
113 |
| - addch(acs_map[ACS.LANTERN]); |
| 114 | + addch(ACS_LANTERN()); |
114 | 115 | printw("\n");
|
115 | 116 |
|
116 | 117 | printw(toStringz("Solid Square Block "));
|
117 |
| - addch(acs_map[ACS.BLOCK]); |
| 118 | + addch(ACS_BLOCK()); |
118 | 119 | printw("\n");
|
119 | 120 |
|
120 | 121 | printw(toStringz("Less/Equal sign "));
|
121 |
| - addch(acs_map[ACS.LEQUAL]); |
| 122 | + addch(ACS_LEQUAL()); |
122 | 123 | printw("\n");
|
123 | 124 |
|
124 | 125 | printw(toStringz("Greater/Equal sign "));
|
125 |
| - addch(acs_map[ACS.GEQUAL]); |
| 126 | + addch(ACS_GEQUAL()); |
126 | 127 | printw("\n");
|
127 | 128 |
|
128 | 129 | printw(toStringz("Pi "));
|
129 |
| - addch(acs_map[ACS.PI]); |
| 130 | + addch(ACS_PI()); |
130 | 131 | printw("\n");
|
131 | 132 |
|
132 | 133 | printw(toStringz("Not equal "));
|
133 |
| - addch(acs_map[ACS.NEQUAL]); |
| 134 | + addch(ACS_NEQUAL()); |
134 | 135 | printw("\n");
|
135 | 136 |
|
136 | 137 | printw(toStringz("UK pound sign "));
|
137 |
| - addch(acs_map[ACS.STERLING]); |
| 138 | + addch(ACS_STERLING()); |
138 | 139 | printw("\n");
|
139 | 140 |
|
140 | 141 | refresh();
|
|
0 commit comments