@@ -25,30 +25,30 @@ int main()
25
25
}
26
26
start_color();
27
27
foreach (ushort i; 0 .. 256 ){ // Define all the colours with the default palette
28
- init_pair(i, 0 , i); // We're only setting the background here;
28
+ init_pair(i, 0 , i); // We're only setting the background here;
29
29
} // The space is rendered as nothing.
30
30
31
31
auto w = COLS / 9 ; // Let's just fill all the horizontal space
32
32
33
33
// Basic colours
34
34
foreach (ushort i; 0 .. 16 ){
35
- attron(COLOR_PAIR (i));
36
- mvwhline(stdscr, cast (int )(i% 8 ),w* (i/ 8 ),to! size_t (' ' ),w);// chtype is a size_t by spec.
37
- attroff(COLOR_PAIR (i));
35
+ attron(COLOR_PAIR (i));
36
+ mvwhline(stdscr, cast (int )(i% 8 ),w* (i/ 8 ),to! size_t (' ' ),w);// chtype is a size_t by spec.
37
+ attroff(COLOR_PAIR (i));
38
38
}
39
39
40
40
// 6x6x6 cubemap
41
41
foreach (ushort i; 16 .. 232 ){
42
- attron(COLOR_PAIR (i));
43
- mvwhline(stdscr, cast (int )((i- 16 )% 36 ),(2 * w+ w* ((i- 16 )/ 36 )),to! size_t (' ' ),w);
44
- attroff(COLOR_PAIR (i));
42
+ attron(COLOR_PAIR (i));
43
+ mvwhline(stdscr, cast (int )((i- 16 )% 36 ),(2 * w+ w* ((i- 16 )/ 36 )),to! size_t (' ' ),w);
44
+ attroff(COLOR_PAIR (i));
45
45
}
46
46
47
47
// Greyscale
48
48
foreach (ushort i; 232 .. 256 ){
49
- attron(COLOR_PAIR (i));
50
- mvwhline(stdscr, cast (int )(i- 232 ),(8 * w),to! size_t (' ' ),w);
51
- attroff(COLOR_PAIR (i));
49
+ attron(COLOR_PAIR (i));
50
+ mvwhline(stdscr, cast (int )(i- 232 ),(8 * w),to! size_t (' ' ),w);
51
+ attroff(COLOR_PAIR (i));
52
52
}
53
53
54
54
wmove(stdscr, LINES - 1 , COLS - 1 );// Moving this out of the way
0 commit comments