def terminal_size(self):
try:<EOL><INDENT>_, columns = os.popen('<STR_LIT>', '<STR_LIT:r>').read().split()<EOL>return min(int(columns) - <NUM_LIT:10>, <NUM_LIT:100>)<EOL><DEDENT>except ValueError:<EOL><INDENT>return self.default_terminal_size<EOL><DEDENT>
Gets the terminal columns size.