summaryrefslogtreecommitdiff
path: root/vtysh/vtysh_main.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-11-08 06:50:13 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2018-12-06 23:04:12 +0100
commit6a9d6af48352c691cf95dcf3f11593286f825463 (patch)
tree821beb203b9391dab22f16a868880fc0bc128df0 /vtysh/vtysh_main.c
parent87abc4beadc75e60fcacfa3fed05b4dc76afa7b1 (diff)
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>
Diffstat (limited to 'vtysh/vtysh_main.c')
-rw-r--r--vtysh/vtysh_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c
index 86fa62f474..88c6c32ea5 100644
--- a/vtysh/vtysh_main.c
+++ b/vtysh/vtysh_main.c
@@ -666,8 +666,6 @@ int main(int argc, char **argv, char **env)
exit(0);
}
- vtysh_pager_init();
-
vtysh_readline_init();
vty_hello(vty);