Fix vpp "unix interactive" when running under emacs + gdb 07/8507/1
authorDave Barach <dave@barachs.net>
Fri, 22 Sep 2017 17:34:39 +0000 (13:34 -0400)
committerDave Barach <dave@barachs.net>
Fri, 22 Sep 2017 17:39:07 +0000 (13:39 -0400)
commitb66201f76143391cc9b81d9c419919b9fd914a24
treee3b5990c1c9d7e9f07b1421de3aae17c83e35ca9
parent35df2e1dc9dd639f3a28680689c1d5f3ec6d8dfc
Fix vpp "unix interactive" when running under emacs + gdb

In this specific corner-case setup, ioctl (0, TIOCGWINSZ) returns
window height = 0 and width = 0. Rather than declaring the terminal to
be non-interactive, set the window size parameters to 80 x 24.

Change-Id: If66f5f0883f1940518ec1c6e26228c9bb6f32852
Signed-off-by: Dave Barach <dave@barachs.net>
src/vlib/unix/cli.c