[Console] Added getTerminalDimensions() with fix for osx/freebsd