Link to home
Start Free TrialLog in
Avatar of Nikmis
Nikmis

asked on

Change cursor from _ underscore type to Block Type?

In redhat 6.0, is there a way to tell the os to use the Block cursor instead of the underscore cursor?  Please leave instructions on how to set this up.
Avatar of Alien Life-Form
Alien Life-Form


If your concern is with the console
cursor, one way to change it is
SVGATextMode (which is on the RH CD,
but may not be installed by default).

The sample TextConfig configuration file
has a (commented) option to switch the
cursor from underline to blck (look for a line starting with Cursor).

Since SVGATextMode comes with a number of preconfigured modes, and a default that's reasonable for most video cards
(80x25), you can just uncomment the relevant Cursor line, and arrange SVGATextMode to be called ASAP (I stuck mine in /etc/rc.d/rc.local). If you want this to be a per-user thing, then you'll have to make SVGATextMode SUID root, but I doubt this is a good idea.

OTOH, if XWindows terminal emulators is what we are talking about, then I think the answer depends on the particular app.
ASKER CERTIFIED SOLUTION
Avatar of Alien Life-Form
Alien Life-Form

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To get normal blinking underline, use: echo -e '\033[?2c'
To get blinking block, use:            echo -e '\033[?6c'
To get red non-blinking block, use:    echo -e '\033[?17;0;64c'

( From  /usr/src/linux/Documentation/VGA-softcursor.txt. )

These work in the console only, so put them in your .bashrc like this


if [ "$TERM" == "linux" ] ; then
      echo -e '\033[?17;0;64c'
fi
Avatar of Nikmis

ASKER

It is a Terminal emulations program, and I figured out how to set it.  So I did not get the chance to try your other suggestions.