termcurses: Get terminal size using ioctl().
termcurses: Get terminal size using ioctl().

This requires some inline C in order to reliably get the terminal dimensions. My
original approach was adding a new exthase library, but this would have been
_way_ too much overhead by adding nasty build.xml files and other stuff. Using
inline __cpp__ constructs, the implementation is way more seamless and doesn't
break on various systems... like for example on Nix(OS) ;-)

Signed-off-by: aszlig <ee1aa092358634f9c53f01b5a783726c9e21b35a@redmoonstudios.org>

aszlig/hase