Use the TIOCGWINSZ macro from C to determine correct value of option