Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-15-2005, 02:03 AM   #1
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
Changing the default (block) cursor

I'd like to use an underline instead of a block cursor. Is this possible?

I'm running slackware-current, bash, aterm.

I've been doing a little searching, on this and have found some threads referring to the VGA-softcursor in /usr/src/linux/Documentation. I've tried the

echo -e '\033[?2c'
to no avail. (also fooled around with -ne, double-quotes, etc.

Any ideas?


Old 07-15-2005, 06:47 PM   #2
Registered: Oct 2003
Location: North Carolina, USA
Distribution: Slackware 11
Posts: 174

Rep: Reputation: 30
I played around with this some after reading your question.

First of all, the codes given in the /Documentation/ file you mention seem to work (at least the examples) when I use them on any of my Slackware VGA terminals (i.e., CTRL-ALT-F1 through F6). I do not use framebuffer consoles so I'm not sure if the codes would work on those...I just use plain old "normal" VGA modes for my terminals.

As you noted, the codes do not work in aterm (nor gnome-terminal) within X. I did some minor research on aterm and it appears that cursor change is not yet supported.

I know it's not a response you were hoping for...I'm only offering my observations.
Old 07-15-2005, 07:00 PM   #3
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
I can confirm that the VGA softcursor codes work in framebuffer as well

The doc file is : kernel/Documentation/VGA-softcursor.txt
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'
Old 07-15-2005, 07:28 PM   #4
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Original Poster
Rep: Reputation: 15
Thanks for your replies. The funny thing is, I've tried both in Framebuffer and in X/rxvt/aterm/xterm. The single tick is the single-quote, right?

Maybe it has something to do with my .bashrc. Specifically:

PS1='\[\e[0;32m\]\w\[\e[0;37m\]:\[\e[0;36m\]\!\[\e[0;37;1m\]> \[\e[0m\]'
I'll keep playing with it to see if I can figure it out. The main thing is I know it's *supposed* to work.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux console mono-color, blinking block cursor introuble Linux - General 1 06-24-2005 06:08 PM
changing mouse cursor r4f Linux - Newbie 7 02-22-2005 02:09 PM
move cursor to default button? vzzt! Linux - Newbie 6 10-05-2004 06:14 PM
Mouse cursor has become HUGE block walterbyrd Debian 2 05-06-2004 10:21 AM
Changing your mouse cursor in fluxbox? jagsfan Linux - Newbie 0 11-02-2003 04:09 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration