I would like to write a short d program that fills the screen with pound symbols. Here is what I have
import std.stdio;
import std.process;
import std.conv;
void main(string[] args){
auto lines = environment.get("LINES");
int line_count = to!int(lines);
for(int a = 1; a <= line_count; a++){
writeln("######################################################################");
}
}
I expected this to work because when I execute "echo $LINES" from the terminal it prints "47". However, LINES appears empty when I run the program via rdmd in the same session. This is on Ubuntu Raring. Any ideas?