[comp.sys.ibm.pc.rt] Console Cursor Question

njs@scifi.UUCP (Nicholas J. Simicich) (07/22/89)

In article <12245@well.UUCP> gors@well.UUCP (Gordon Stewart) writes:

>Does anyone know how to get a block or blinking cursor on the RT console
>running vi?  The console defaults to a underscore-like character which
>is virtually impossible to find in a cluttered screen.

I call this file "blob", and mark it executable, usually storing it in
my path somewhere.  Legal values are "blob 0" through "blob 5".  You
probably want to run "blob 3" or "blob 5" before starting vi.

#!/bin/sh
foo=`stty -g`
stty raw 
echo \\033[x\\000\\000\\000\\012\\002\\010\\002\\000\\000\\00$1
stty $foo

This script presumes you are running AIX.
-- 
Nick Simicich --- uunet!bywater!scifi!njs --- njs@ibm.com (Internet)

gors@well.UUCP (Gordon Stewart) (07/23/89)

Does anyone know how to get a block or blinking cursor on the RT console
running vi?  The console defaults to a underscore-like character which
is virtually impossible to find in a cluttered screen.

-Karin Meyer
-- 
...!{lll-crg,hplabs,cogsci,hoptoad,apple}!well!gors

drake@ibmarc.uucp (Sam Drake/99999999) (08/03/89)

The following shell script will give you a block cursor on the RT:

echo "\033[x\000\000\000\014\002\010\004\000\000\000\000\005"\\c

I'm not an official anything, and anything I say may be wrong.

Sam Drake / IBM Almaden Research Center 

richmond@astroplasma.berkeley.edu (Michael Richmond) (08/03/89)

In article <12245@well.UUCP> gors@well.UUCP (Gordon Stewart) writes:
>
>Does anyone know how to get a block or blinking cursor on the RT console
>running vi?  The console defaults to a underscore-like character which
>is virtually impossible to find in a cluttered screen.
>
>-Karin Meyer

  Someone recently posted the following little shell script (I wish
I could remember who and give {him,her} credit) to give a variety
of cursor types on an RT. Just run the following 'shar' file through
/bin/sh and chmod the resulting file 'blob' to executable. Then type
'blob x' where 0 < x < 7 to get a variety of cursor types. I prefer
type 5, a solid block cursor, myself.

#!/bin/sh
# shar:	Shell Archiver  (v1.22)
#
#	Run the following text with /bin/sh to create:
#	  blob
#
sed 's/^X//' << 'SHAR_EOF' > blob &&
X#!/bin/sh
Xfoo=`stty -g`
Xstty raw 
Xecho \\033[x\\000\\000\\000\\012\\002\\010\\002\\000\\000\\00$1
Xstty $foo
SHAR_EOF
chmod 0777 blob || echo "restore of blob fails"
set `wc -c blob`;Sum=$1
if test "$Sum" != "108"
then echo original size 108, current size $Sum;fi
exit 0

   Have fun!

                       Michael

--                                          Michael Richmond
"This is the heart that broke my finger."   richmond@bllac.berkeley.edu