summaryrefslogtreecommitdiff
path: root/templates/terminal
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-09-17 14:01:46 -0700
committerTom Grennan <tgrennan@vyatta.com>2007-09-17 14:01:46 -0700
commiteb51e368fa9cc2d1a016b888512aa05b02392667 (patch)
tree6c94da0db0b2dc6d0f56897d14f3b4a2d594c1f9 /templates/terminal
parent42b11e866ee4cfc20059d5a1ad36c8eda3ba1ef9 (diff)
downloadvyatta-op-eb51e368fa9cc2d1a016b888512aa05b02392667.tar.gz
vyatta-op-eb51e368fa9cc2d1a016b888512aa05b02392667.zip
rename op-templates
Diffstat (limited to 'templates/terminal')
-rw-r--r--templates/terminal/length/node.def12
-rw-r--r--templates/terminal/no/length/node.def2
-rw-r--r--templates/terminal/no/node.def2
-rw-r--r--templates/terminal/node.def2
4 files changed, 18 insertions, 0 deletions
diff --git a/templates/terminal/length/node.def b/templates/terminal/length/node.def
new file mode 100644
index 0000000..a6aaa85
--- /dev/null
+++ b/templates/terminal/length/node.def
@@ -0,0 +1,12 @@
+help: "Set terminal page length [0 will disable paging]"
+run: if [ -n "$3" ] ; then
+ if [ $3 -eq 0 ] ; then
+ OFR_PAGER='cat -s' ;
+ else
+ export LINES=$3 ;
+ stty rows $3 ;
+ fi ;
+ else
+ eval $( resize ) ;
+ fi ;
+ : ${OFR_PAGER:=${OFR_DEFAULT_PAGER}}
diff --git a/templates/terminal/no/length/node.def b/templates/terminal/no/length/node.def
new file mode 100644
index 0000000..27687f6
--- /dev/null
+++ b/templates/terminal/no/length/node.def
@@ -0,0 +1,2 @@
+help: "Disable terminal paging"
+run: OFR_PAGER='cat -s'
diff --git a/templates/terminal/no/node.def b/templates/terminal/no/node.def
new file mode 100644
index 0000000..27687f6
--- /dev/null
+++ b/templates/terminal/no/node.def
@@ -0,0 +1,2 @@
+help: "Disable terminal paging"
+run: OFR_PAGER='cat -s'
diff --git a/templates/terminal/node.def b/templates/terminal/node.def
new file mode 100644
index 0000000..548ca3c
--- /dev/null
+++ b/templates/terminal/node.def
@@ -0,0 +1,2 @@
+help: "Set terminal page length"
+run: resize; OFR_PAGER=$OFR_DEFAULT_PAGER