Commits

Denilson Sá committed 9159fee

prettyping.sh: Fixing terminal size detection on Mac OS X.

Fixes issue 3.

Comments (0)

Files changed (1)

 
 	# Auto-detecting the terminal size
 	HAS_STTY = 1
-	STTY_CMD = "stty size --file=/dev/tty 2> /dev/null"
+	STTY_CMD = "stty --file=/dev/tty size 2> /dev/null"
 	get_terminal_size()
 	if( '"${IS_TERMINAL}"' && COLUMNS <= 50 ) {
 		print "Warning: terminal width is too small."