screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cursor shape with ncurses programs gets reset


From: Dave Wood
Subject: Re: Cursor shape with ncurses programs gets reset
Date: Wed, 7 Jan 2009 19:34:33 +0000
User-agent: Mutt/1.5.18 (2008-12-10)

On (08:27 07/01/09), Micah Cowan <address@hidden> put forth the proposition:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave Wood wrote:
I have a flashing block cursor set up because I find it very hard to see
the normal _ underline cursor - expecially when searching through man
pages etc.

The problem comes when I run ncurses programs in screen. The cursor gets
reset to underline whenever I run those programs in screen.

Does anyone know a way around this? I have set up custom terminfo files
with tic. Would there be a setting that would affect ncurses programs
perhaps?

Probably. I don't really know of an easy way to track down the source of
the problem, though. If I had to track it down, I'd probably run screen
under script, and isolate what series of control sequences was sent that
changed the cursor. GNU Teseq might possibly help with that, as it can
convert escape sequences to/from human-editable text.

If you do this, you'll probably want to use the ti@:te@ trick to prevent
screen from using any alternate buffer your terminal may provide, which
might make debugging troublesome (of course, it might be part of the
reproduction steps, too...).

Things'll be much easier if you manage to find someone who knows what
sorts of things might change your cursor in your terminal. If it mostly
just happens in ncurses, you might try tweaking your "altscreen" setting
in your .screenrc, or checking what your screen terminfo says to send on
smcup or smkx (out of curiosity, what _does_ it say for those? for
screen and your host term type?)

I found the fix. My cnorm was set for \E[?25\E[?06c but using script I
found that some programs were actaully sending \E[?25\E[?0c i.e. the 6 was
being dropped. After changing it to \E[?25\E[?6c everything works as it
should.

I'm not sure why some programs like irssi and finch were dropping the 6 and
some worked fine, but it's fixed now anyway.

Thanks.


- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklk1+4ACgkQ7M8hyUobTrHafQCfXElycygpAYgDWfmbZOU8xOzo
exkAn2cHAkNtjSKnYTHlwtLGctycKhhi
=zfVU
-----END PGP SIGNATURE-----



_______________________________________________
screen-users mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/screen-users

--
Feel disillusioned?  I've got some great new illusions ...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]