#!/bin/sh
#
# FILE NAME: xprompter-ncd
#
# This is a simple shell script to start the DEC Xprompter program on
# a non-local display. Note that it takes advantage of a naming convention
# in the /etc/ttys file. For more information, refer to the comments in
# the file "start-ncd"

	BASENAME=ncdu

# Use the first arg to determine the specific unit to display on:

	NUMBER=`echo $1|sed 's/://'`
	UNIT=${BASENAME}${NUMBER}

# Start the prompter:

	DISPLAY=${UNIT}:0
	export DISPLAY
	/usr/bin/Xprompter -display ${DISPLAY}:0

