HP3000-L Archives

January 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Randy Medd <[log in to unmask]>
Reply To:
Date:
Thu, 13 Jan 2000 09:49:30 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Yesterday, Kristian wrote:

> I have a command file in which a do a "SET ECHO=ON/OFF". It works ok
> but the 2:nd "INPUT" gets pushed away some 15 spaces which looks
> ugly. Help!

> <snip>
> SET ECHO=OFF
> SETVAR zz_pwd UPS(INPUT("Pass till SKA : "))
> SET ECHO=ON
> SETVAR zz_ext UPS( INPUT( "Filslut (BYR|EKO|DKO): " ))
> <snip>

The 15 spaces (16 actually in your example) reflect the fact that the
cursor was left in column 17 after the "Pass till" prompt was
displayed.  As echo was disabled, your response _and_ the terminating
carriage-return weren't echoed, but you _did_ get a free line-feed as
the read terminated, simply moving the cursor down the the next line,
but remaining in column 17.  Add:

  ECHO ![CHR(13)]

after the SET ECHO=ON to supply the carriage-return to move the cursor
back to the left margin, albeit on the next line, as this ECHO will
generate yet-another line-feed.  If you're using this command-file on
an HP terminal (or terminal emulator), change the echo to:

  ECHO ![CHR(27)]A

------------
Randy (seeing this in digest mode, so if someone else has already
responded, sorry for the duplication) Medd
Telamon, Inc.

ATOM RSS1 RSS2