]> git.puffer.fish Git - matthieu/frr.git/commit
vtysh: rework/straighten pager handling
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 8 Nov 2018 05:50:13 +0000 (06:50 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Thu, 6 Dec 2018 22:04:12 +0000 (23:04 +0100)
commit6a9d6af48352c691cf95dcf3f11593286f825463
tree821beb203b9391dab22f16a868880fc0bc128df0
parent87abc4beadc75e60fcacfa3fed05b4dc76afa7b1
vtysh: rework/straighten pager handling

- no longer try to special-case a custom terminal length; the OS has
  procedures for that (SIGWINCH & TIOCGWINSZ)
- only use a pager if requested by CLI command or VTYSH_PAGER.  The
  behaviour with VTYSH_PAGER set should be compatible to previous
  versions.

Signed-off-by: David Lamparter <equinox@diac24.net>
vtysh/vtysh.c
vtysh/vtysh.h
vtysh/vtysh_main.c