diff options
Diffstat (limited to 'templates/terminal')
-rw-r--r-- | templates/terminal/length/node.def | 12 | ||||
-rw-r--r-- | templates/terminal/no/length/node.def | 2 | ||||
-rw-r--r-- | templates/terminal/no/node.def | 2 | ||||
-rw-r--r-- | templates/terminal/node.def | 2 |
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 |