Jump to content

Terminal console cursor disappeared after apt upgrade


mss

Recommended Posts

My cursor in console (not desktop environment) disappeared after apt upgrade from a clean install.

Device : orange pi pc

Version: ARMBIAN Debian GNU/Linux 8 (jessie) 3.4.112-sun8i
 

I also changed led triggers red one to mmc0 and green to timer. I run apt list>aptlist.txt and attach result to post. it changed a lot i install further packages. 

aptlist.txt

Link to comment
Share on other sites

I found this fix, credit to youka

 

http://forum.odroid.com/viewtopic.php?f=117&t=11758

 

Re: fbcon cursor

icon_post_target_unread.gifby youka Â» Fri Mar 27, 2015 10:57 pm

Anyway, all that aside...There's a nice work-around in the link Holzhaus provided...
CODE: SELECT ALL infocmp >> terminfo.txt
sed -i.bak -e 's/?0c/?112c/g' -e 's/?8c/?48;0;64c/g' terminfo.txt
tic terminfo.txt
tput cnorm
Then just re-run "tput cnorm" each time you log in. This should be good enough for now. At least now I can edit text files without being completely lost icon_e_biggrin.gif

 

Link to comment
Share on other sites

To display grey-block cursor in console i used this script:

 

  # delete console settings for current user

  rm -rf ~/.terminfo

  # delete console settings for root

  sudo rm -rf /etc/terminfo/*

  cd /tmp

  # copy default console settings to a file

  infocmp -A /lib/terminfo linux > terminfo

  # replace 'bad' cursor params (cnorm and cvvis) with new (man terminfo)

  sed -i -e 's/?0c/?16;0;240c/g' -e 's/?8c/?16;0;240c/g' terminfo

  # compile the edited terminfo

  sudo tic terminfo

 

 

last command launched as root, puts compiled data in /etc/terminfo

since ~/.terminfo is removed, parameters will be read from /etc/terminfo (for current user and root)

 

now create script in /etc/profile.d with one line:

 

tput cnorm

 

now cursor should be anywhere at anytime except login prompt.

Link to comment
Share on other sites

I use the solution posted by markbirss.

 

It works.

 

I just wanted to add that you should enter those commands as a super user, otherwise the cursor will disappear when you open vim as a super user. This happened to me on a previous install and I was using a workaround to edit read-only files. Today, in a fresh install, I entered those commands as a super user and I'm not having that problem anymore.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines