HP3000-L Archives

December 2005, 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:
Edward Berner <[log in to unmask]>
Reply To:
Edward Berner <[log in to unmask]>
Date:
Thu, 8 Dec 2005 18:24:57 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
On Thu, 8 Dec 2005 14:14:00 -0700, Miller, Keven 
<[log in to unmask]> wrote:

>I have a program I am trying to move from MPE to linux/unix.
>It does screen io with HPterminal escape sequences.
>
>On MPE, when you use FSETMODE (fn, 4), it suppresses echoing
>of CR/LF, even though echoing of other chars is done.
>
>I can not seem to find a similar raw mode on the linux side.
>Its close, but I cannot seem to disable or suppress LF when
>in echo mode.
>
>The only solution I can see is to disable echo, and echo only
>the chars I want to; unless someone else has run across this
>type of issue and found a solution.
>

Interesting.  From the man pages I'd think that disabling ECHONL would do 
the trick, but it doesn't seem to.  A bit of testing and a quick glance at 
the OpenSolaris source code suggests that ECHONL is used to cause newline 
to echo some times when it otherwise would not but not to suppress it when 
it would normally be echo'd.

Other than doing the echo yourself, the only workaround I can think of is 
to issue a "move cursor up one line" sequence after getting the user input 
(shell script example below).

----------
#! /bin/sh

printf "foo: "
read foo
echo "[$foo]"

echo "-----"

printf "bar: "
read bar
tput cuu1
echo "[$bar]"
----------

later,
Edward

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2