#!/bin/bash # # Issues a screenpager command in "heads up" mode; # wrapping it with checks to ensure that the display is on, # or was on recently. # Helps ensure that the user knows what screen is active. # Meant for key-bound invocation of commands # that are difficult to reverse or undo, # such as page deletes. # if /usr/bin/screenpager display off --duration=20 test; then /usr/bin/screenpager display on # display off too long # skip command, and turn it on else /usr/bin/screenpager --display $@ # issue command and turn on display fi