Terminal size, signals, and evironment variables added.