diff options
Diffstat (limited to 'templates/terminal/length')
-rw-r--r-- | templates/terminal/length/node.def | 1 | ||||
-rw-r--r-- | templates/terminal/length/node.tag/node.def | 7 |
2 files changed, 8 insertions, 0 deletions
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 '<NUMBER>' +run: if [ "$3" -eq 0 ] ; then + VYATTA_PAGER=cat + else + stty rows $3 + fi |