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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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/Documentati on/VGA-sof tcursor.tx t. )
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
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/Documentati
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
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.
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.