Instead of a min term size, use a default (VPP-1061) 92/9392/2
authorChris Luke <chrisy@flirble.org>
Mon, 13 Nov 2017 03:26:37 +0000 (22:26 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 13 Nov 2017 14:33:32 +0000 (14:33 +0000)
commit2d8bf304230102a6d9b312b98315418617798175
tree599f0fdb8340ae61b8a9c284699e06cf2e7ff9e4
parent192267d490e6f791073236e6e5b303c051cbab48
Instead of a min term size, use a default (VPP-1061)

- In the bug report, Docker was sometimes giving shells
  a 0,0 terminal size. The minimum-term-size logic meant
  that VPP assumed the terminal had 1 row. The pager
  functioned, but of course overwrote the one line with its
  own prompt.
- Instead of a minimum size, always use a default size when
  the either terminal dimension is 0.

Change-Id: Iee5a465f0e4cbb618ef2222b40a52994aefa54bf
Signed-off-by: Chris Luke <chrisy@flirble.org>
src/vlib/unix/cli.c