HP3000-L Archives

October 2002, 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:
Keven Miller <[log in to unmask]>
Reply To:
Keven Miller <[log in to unmask]>
Date:
Tue, 8 Oct 2002 13:32:23 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (84 lines)
This really is a terminal emulation problem.
The <esc>&dS  <esc>&d@ are ecsape codes that work for various
HP terminals.  So the question now is what terminal is your
Reflection for Unix emulating?

Jumping ahead, I'll expect that your using a VT10x flavor. So you
can try this script (I happend to put this together and test using Putty).
Some of these codes may not work, like the 8m, Hidden text.
It didn't work for me, yet I find documentation on it (see Google: VT100
Escape)

The ^[ char below is really an escape character. I cut & pasted this from
vi.
Sample 1 is inverse  <esc>[7m     (don't forget to disable attribute when
done  <esc>[0m )
Sample 2 is Invisible <esc>[8m    (This didn't work for me)
Sample 3 uses colors <esc>[36m<esc>[46m   (Here I place both fore and
background to same color)
Sample 4 uses linedraw <esc>(0   (and re-enable chars  <esc>(B (for US) or
<esc>(A (for UK))

You will just have to test on your selected terminal type!
-------------------------------------------------------------
echo [Inverse] Password:^[[7m\\c
read mypass
echo ^[[0mpass=$mypass

echo [Invisible] Password:^[[28m\\c
read mypass
echo ^[[0mpass=$mypass

echo [color] Password:^[[36m^[[46m\\c
read mypass
echo ^[[0mpass=$mypass

echo [altchar] Password:^[\(0\\c
read mypass
echo ^[\(Bpass=$mypass

#rst==csi+"0m"   !Reset text modes
#bd1==csi+"1m"   !Bold print on
#bd0==csi+"22m"  !Bold print off
#ul1==csi+"4m"   !Underline on
#ul0==csi+"24m"  !Underline off
#bl1==csi+"5m"   !Blink on
#bl0==csi+"25m"  !Blink off
#rv1==csi+"7m"   !Reverse print on
#rv0==csi+"27m"  !Reverse print off
#hd1==csi+"8m"   !Hidden print on
#hd0==csi+"28m"  !Hidden print off

#0 Reset all attributes
#1 Bright
#2 Dim
#4 Underscore
#5 Blink
#7 Reverse
#8 Hidden

#  Foreground Colours
# 30  Black
# 31  Red
# 32  Green
# 33  Yellow
# 34  Blue
# 35  Magenta
# 36  Cyan

#  Background Colours
# 40  Black
# 41  Red
# 42  Green
# 43  Yellow
# 44  Blue
# 45  Magenta
# 46  Cyan
# 47  White
----------------------------------------------------------

# 37  White

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

ATOM RSS1 RSS2