From 20bfe68eddfa1181cdf91aeb45f65fe717a1fb93 Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Fri, 30 Nov 2007 12:23:56 -0800 Subject: fix bug 2486 pipe "show" commands and help through pager --- templates/terminal/length/node.def | 1 + templates/terminal/length/node.tag/node.def | 7 +++++++ templates/terminal/node.def | 1 + templates/terminal/pager/node.def | 2 ++ templates/terminal/pager/node.tag/node.def | 3 +++ templates/terminal/width/node.def | 1 + templates/terminal/width/node.tag/node.def | 3 +++ 7 files changed, 18 insertions(+) create mode 100644 templates/terminal/length/node.def create mode 100644 templates/terminal/length/node.tag/node.def create mode 100644 templates/terminal/node.def create mode 100644 templates/terminal/pager/node.def create mode 100644 templates/terminal/pager/node.tag/node.def create mode 100644 templates/terminal/width/node.def create mode 100644 templates/terminal/width/node.tag/node.def (limited to 'templates/terminal') diff --git a/templates/terminal/length/node.def b/templates/terminal/length/node.def new file mode 100644 index 0000000..3e24898 --- /dev/null +++ b/templates/terminal/length/node.def @@ -0,0 +1 @@ +help: Set terminal rows diff --git a/templates/terminal/length/node.tag/node.def b/templates/terminal/length/node.tag/node.def new file mode 100644 index 0000000..3dfae2b --- /dev/null +++ b/templates/terminal/length/node.tag/node.def @@ -0,0 +1,7 @@ +help: Set terminal to given number of rows (0 disables paging) +allowed: echo -n '' +run: if [ "$3" -eq 0 ] ; then + VYATTA_PAGER=cat + else + stty rows $3 + fi diff --git a/templates/terminal/node.def b/templates/terminal/node.def new file mode 100644 index 0000000..85b7c7f --- /dev/null +++ b/templates/terminal/node.def @@ -0,0 +1 @@ +help: Control terminal paging diff --git a/templates/terminal/pager/node.def b/templates/terminal/pager/node.def new file mode 100644 index 0000000..cb5cb41 --- /dev/null +++ b/templates/terminal/pager/node.def @@ -0,0 +1,2 @@ +help: Use default pager (less) +run: VYATTA_PAGER= diff --git a/templates/terminal/pager/node.tag/node.def b/templates/terminal/pager/node.tag/node.def new file mode 100644 index 0000000..fe2226e --- /dev/null +++ b/templates/terminal/pager/node.tag/node.def @@ -0,0 +1,3 @@ +help: Set terminal pager +allowed: echo -n '' +run: VYATTA_PAGER=$3 diff --git a/templates/terminal/width/node.def b/templates/terminal/width/node.def new file mode 100644 index 0000000..ddbc07d --- /dev/null +++ b/templates/terminal/width/node.def @@ -0,0 +1 @@ +help: Set terminal columns diff --git a/templates/terminal/width/node.tag/node.def b/templates/terminal/width/node.tag/node.def new file mode 100644 index 0000000..c40bfd7 --- /dev/null +++ b/templates/terminal/width/node.tag/node.def @@ -0,0 +1,3 @@ +help: Set terminal to given number of columns +allowed: echo -n '' +run: stty columns $3 -- cgit v1.2.3