Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Noticing that Rake always truncate my output for `rake -T` at 80 chars (which is quite annoying), I wondered what was not working.
Rake uses `stty size` and `tput cols` to guess the terminal width.
The first gives "stty: stdin isn't a terminal" and the second returns 80, which is not my terminal width (176).
So, what is the recommended way to obtain the terminal width in JRuby?
(Adding export RAKE_COLUMNS=$COLUMNS in my .zshrc works but that's just a workaround for rake)
This is another stty case where we need to do subprocess launching separate from Java's normal launching, so it can inherit tty.
I may see if I can't build out a few of the key subprocess launching APIs to use the newer Java 7 process launching that allows inheriting.