On Fri, Sep 1, 2017 at 12:25 PM, Mark Volkmann <r.mark.volkm...@gmail.com> wrote: > But how can I detect when the width is less than 20 characters?
On Fri, Sep 1, 2017, at 12:45, Glenn Jackman wrote: > How about `set term_width (tput cols)` No, I already tried that. tput cols will be set to 80 also. stty -a is also affected, so that won't work either. As seen in commit 2be1288 [1], this is deliberate: "If the resulting values are not reasonable fallback to using 80x24." You can see what is considered reasonable in the macro constants MIN_TERM_COL and MIN_TERM_ROW defined in common.h [2]. So, if you are compiling fish for yourself, you can change these values and recompile. What I don't understand is what the advantage of this behavior is. The obvious disadvantage is that fish won't work properly when the terminal is less than 20 columns. Whatever the advantage is, does it outweigh the disadvantage. If this fallback logic is kept status quo, would it make sense to decrease it from 20 to 10? [1] https://github.com/fish-shell/fish-shell/commit/2be1288cacab7ddeee407d22e752b0a3bfa16e63 [2] https://github.com/fish-shell/fish-shell/blob/master/src/common.h ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users