-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement request to switch off command long_desc wrap formatter. #100
Comments
Is the wrap not working? It should use the |
It appeared, just from resizing/re-running, that the wrapping algorithm is fixed. I'm using 2.0.0.rc2 with tcsh. There is no $COLUMNS but stty size works. -----Original Message----- Is the wrap not working? It should use the Reply to this email directly or view it on GitHub: |
Cool. I cribbed the algorithm from another project, but it's intended to Dave Buy My Book: http://www.awesomecommandlineapps.com On Mon, Jul 9, 2012 at 10:55 AM, bdiz <
|
I'm sorry. By "fixed" I meant "width is unchanging". :) -----Original Message----- Cool. I cribbed the algorithm from another project, but it's intended to work in most reasonable shells (which includes tcsh :). Dave Buy My Book: http://www.awesomecommandlineapps.com On Mon, Jul 9, 2012 at 10:55 AM, bdiz <
Reply to this email directly or view it on GitHub: |
Ah, I see. When I run a gli app under tcsh, it seems to wrap things fine. It's possible that GLI doesn't think the ENV['PATH'].split(File::PATH_SEPARATOR).any? {|dir| File.exists?
File.join(dir, command) } Can you try that in IRB (or as a debug statement in your app) and see what I'm wondering if it's only working as a shell built-in for you, it doesn't Dave Buy My Book: http://www.awesomecommandlineapps.com On Mon, Jul 9, 2012 at 11:01 AM, bdiz <
|
irb(main):004:0> ENV['PATH'].split(File::PATH_SEPARATOR).any? {|dir| File.exists? File.join(dir, 'stty') } Seems ok. Ah, I see. When I run a gli app under tcsh, it seems to wrap things fine. It's possible that GLI doesn't think the ENV['PATH'].split(File::PATH_SEPARATOR).any? {|dir| File.exists?
File.join(dir, command) } Can you try that in IRB (or as a debug statement in your app) and see what it does? For me, on OS X, it's I'm wondering if it's only working as a shell built-in for you, it doesn't get detected… Dave Buy My Book: http://www.awesomecommandlineapps.com On Mon, Jul 9, 2012 at 11:01 AM, bdiz <
Reply to this email directly or view it on GitHub: |
That is very strange. Any chance you are the STDIN? The code checks if Dave On Tue, Jul 10, 2012 at 12:20 AM, bdiz <
|
I've got my own text wrap algorithm based on
stty size
. But then description gets re-wrapped.The text was updated successfully, but these errors were encountered: