head	1.4;
access;
symbols
	RELENG_9_1_0_RELEASE:1.1
	RELENG_9_1:1.1.0.6
	RELENG_9_1_BP:1.1
	RELENG_9_0_0_RELEASE:1.1
	RELENG_9_0:1.1.0.4
	RELENG_9_0_BP:1.1
	RELENG_9:1.1.0.2
	RELENG_9_BP:1.1
	RELENG_8_BP:1.1;
locks; strict;
comment	@# @;


1.4
date	2013.06.18.00.33.05;	author svnexp;	state Exp;
branches;
next	1.3;

1.3
date	2012.12.30.06.03.14;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.10.21.18.25.12;	author nwhitehorn;	state Exp;
branches;
next	1.1;

1.1
date	2011.01.12.14.55.02;	author nwhitehorn;	state Exp;
branches;
next	;


desc
@@


1.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251843
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@#!/bin/sh
# $Id: tailboxbg2,v 1.10 2012/06/29 09:51:11 tom Exp $

. ./setup-vars

. ./setup-tempfile

./killall listing
./listing >listing.out &

$DIALOG --title "TAIL BOXES" \
	--no-kill \
	--begin 10 10 "$@@" --tailboxbg listing.out 8 58 \
	--and-widget \
	--begin 15 15 "$@@" --tailboxbg listing.out 8 58 \
	--and-widget \
	--begin 3 10 "$@@" --msgbox "Press OK " 5 30 \
        2>$tempfile

# The --and-widget causes a tab to be emitted, but our example will only
# write one number to stderr.
pid=`cat $tempfile |sed -e 's/	//g'`
if test -n "$pid" ; then
# wait a while for the background process to run
sleep 10

# now kill it
kill -$SIG_QUIT $pid 2>&1 >/dev/null 2>/dev/null
echo "killed [$pid]"
fi

# ...and the process that is making the listing
./killall listing
@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/244850
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $Id: tailboxbg2,v 1.9 2010/01/13 10:20:03 tom Exp $
d28 1
a28 1
kill -3 $pid 2>&1 >/dev/null 2>/dev/null
@


1.2
log
@SVN rev 241818 on 2012-10-21 18:25:12Z by nwhitehorn

Update dialog to 20120706: includes minor useability enhancements and
fixes for warnings encountered with clang.
@
text
@d2 1
a2 1
# $Id: tailboxbg2,v 1.10 2012/06/29 09:51:11 tom Exp $
d28 1
a28 1
kill -$SIG_QUIT $pid 2>&1 >/dev/null 2>/dev/null
@


1.1
log
@SVN rev 217309 on 2011-01-12 14:55:02Z by nwhitehorn

Update dialog to version 20100428. This changes the license under which
dialog is distributed from GPLv2 to LGPLv2 and introduces a number of new
features and a new and better libdialog API. The existing libdialog will
be kept temporarily as libodialog for compatibility purposes until sade,
sysinstall and tzsetup have been either updated or replaced.

__FreeBSD_version is now 900030.

Discussed on:	-current
Approved by:	core
Obtained from:	http://invisible-island.net/dialog
@
text
@d2 1
a2 1
# $Id: tailboxbg2,v 1.9 2010/01/13 10:20:03 tom Exp $
d28 1
a28 1
kill -3 $pid 2>&1 >/dev/null 2>/dev/null
@

