LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-15-2005, 03:03 AM   #1
major.tom
Member
 
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

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

Any ideas?

Thanks,

Garry
 
Old 07-15-2005, 07:47 PM   #2
187807
Member
 
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, 08:00 PM   #3
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

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

The doc file is : kernel/Documentation/VGA-softcursor.txt
Code:
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, 08:28 PM   #4
major.tom
Member
 
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:

Code:
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.

Cheers!

Garry
 
  


Reply


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 07:08 PM
changing mouse cursor r4f Linux - Newbie 7 02-22-2005 03:09 PM
move cursor to default button? vzzt! Linux - Newbie 6 10-05-2004 07:14 PM
Mouse cursor has become HUGE block walterbyrd Debian 2 05-06-2004 11:21 AM
Changing your mouse cursor in fluxbox? jagsfan Linux - Newbie 0 11-02-2003 05:09 PM


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

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