Empyreus / lanterna

Automatically exported from code.google.com/p/lanterna
GNU Lesser General Public License v3.0
0 stars 0 forks source link

querySize() doesn't work on OS X (patch included) #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The version of the stty program included with OS X is a bit different from the 
one Lantern seems to expect in two ways:

* It uses -f instead of -F to specify the TTY.
* It outputs "40 rows" instead of "rows 40".

Here's a patch that fixes both of these issues so querySize() works properly on 
OS X (at least on Lion): 
https://bitbucket.org/sjl/lanterna/changeset/7a339723fb24

My vanilla Java is a bit rusty, so there's probably a better way to do some of 
that, but at least it's a start.

Original issue reported on code.google.com by st...@stevelosh.com on 11 Feb 2012 at 5:18

GoogleCodeExporter commented 9 years ago
Sure, looks good! 
Do you know if OS X supports the CommonTerminal.reportPosition()?

Original comment by mab...@gmail.com on 12 Feb 2012 at 9:49

GoogleCodeExporter commented 9 years ago
Committed to 1.0.x and default

Original comment by mab...@gmail.com on 12 Feb 2012 at 10:06