The reason is that very low sizes are two things:
* Don't work with fish.
* Often a terminal error.
Terminals that fail to report their size are not unusual. An easy way to
head off both problems is to use a default size (to mis-represent) when
it's likely that the terminal is lying to fish. Note that you have not ever
claimed that you wanted to actually use a sub-20 column terminal... you
just want to test it, so that you can make sure your code works well with
it. Rather than focusing on the odd behavior, can you instead describe a
use-case where sub-20 width terminal usage makes sense and has utility for
a class of users?
Because it sounds like you're asking developers to change how they've
programmed fish to deal with a problem. So if you want other people to work
out a more complicated solution to a problem, it's important to explain who
will benefit from that work. What type of user needs very narrow terminals?
How will they benefit from this work?
On Sat, Sep 2, 2017 at 9:44 AM Greg Reagle <greg.rea...@umbc.edu> wrote:
> On Sat, Sep 2, 2017, at 10:20, Kurtis Rader wrote:
> > Fish won't work if COLUMNS is one or two either. As I said earlier I
> > don't recall now what the exact threshold is but I'm pretty sure it was
> > greater than ten. Similarly, it won't work if LINES is less than two. So
> > the actual threshold is not zero versus non-zero. Feel free to do some
> > experiments to determine the hard lower limit on COLUMNS and ask that it
> > be used as the hard lower bound rather than 20. Of course, that just
> > moves the goal posts slightly so it's not clear it really matters at the
> > end of the day. Fish will not work in a 1x1, 2x2, 5x2, or other similarly
> > sized terminals.
>
> But you're still not answering my question. What is the advantage of
> *mis-representing* the size? You say that fish will not work with a too
> small terminal. Okay, what does that have to do with fish reporting
> that the terminal is 80x24 to *other programs*? Does fish work better
> in a too small terminal when it pretends that the terminal is 80x24? If
> no, what's the point? If yes, can it pretend internally without
> mis-representing the size to other programs?
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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