infobox6

来自「This version of dialog, formerly known a」· 代码 · 共 41 行

TXT
41
字号
#! /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 + =
减小字号Ctrl + -
显示快捷键?