tty.c, NCL: "avoid" excess of MAX_INPUT when tab-expanding..
commit0320c8ba6c79b1e4d58b2aa8784c0d032b8f0cdd
authorSteffen "Daode" Nurpmeso <sdaoden@users.sf.net>
Fri, 20 Sep 2013 22:19:57 +0000 (21 00:19 +0200)
committerSteffen "Daode" Nurpmeso <sdaoden@users.sf.net>
Fri, 20 Sep 2013 22:19:57 +0000 (21 00:19 +0200)
treefece589804618c749b9ca80a349adbad8c9131ed
parent003d9f6f410ca7ea4d2b460e61799e20a82ec93a
tty.c, NCL: "avoid" excess of MAX_INPUT when tab-expanding..

The known problem of this code was yet that expansion may be so
large that the terminals idea of where the cursor is and what is
displayed is not identical to our own.
This is assumed to be a best-case scenario.  (May it be that old,
true consoles may even block?  Should try that out of interest.)

I left it like this consciously because the *real* solution would
be as is shown by true tab-*completion* enabled implementations:
show the *possible completions* page-wise as necessary.
This would however require a lot of logic, which is definitely
overkill at the current state of development.

However, given that the result looks flaky at best, and because we
cannot simply stop producing output when we would overflow the
possible maximum line length, let's just simply replace the
expansion with a message that says so.  It's one more TODO.
tty.c