]> git.proxmox.com Git - mirror_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:05:48 +0000 (23:05 +0100)
commit76fd52625de1e00c1cc9d4f49f24b4caaaeeded1
tree20db2afd2944551f10a4f680b2277c28311573a2
parent9c830772cd5cf74c1c47fab8b492d89e2ddbcc96
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