📄 infobox6
字号:
#! /bin/sh# $Id: infobox6,v 1.2 2003/08/15 19:40:37 tom Exp $# get rid of all flickering by constructing a script unroll the loop, leaving# us in curses-mode until we're done counting.## a little fancier than infobox5, this moves the widget at each step.: ${DIALOG=dialog}tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$trap "rm -f $tempfile" 0 1 2 5 15left=10unit="seconds"last='\'cat >>$tempfile <<EOF$DIALOG $lastEOFwhile test $left != 0docat >>$tempfile <<EOF --sleep 1 \ --begin $left `expr $left + 5` \ --title "INFO BOX" $last --infobox "Hi, this is an information box. It isdifferent from a message box: it willnot pause waiting for input after displayingthe message. The pause here is only introducedby the sleep command within dialog.You have $left $unit to read this..." 0 0 $lastEOFleft=`expr $left - 1`test $left = 1 && unit="second"doneecho >>$tempfile. $tempfile
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -