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

Bug#299439: xterm: Request for underline cursor.



On Tue, Mar 15, 2005 at 06:02:06AM -0500, Thomas Dickey wrote:
> On Mon, Mar 14, 2005 at 05:30:12AM +0100, Mariano Alvira wrote:
> > Package: xterm
> > Version: 4.3.0.dfsg.1-10
> > Severity: wishlist
> > Tags: patch
> > 
> > 
> > I'd like an option for xterm to use a underline cursor instead of the
> > block.
> > 
> > The attached patch is included as proof-of-concept and is not intended
> > for actual use.
> 
> I understand that.  Someone asked about this a while back, and I seem to
> recall that it also requires (besides the simple change to charproc.c)
> some tinking in util.c (which didn't look as simple).
> 
> -- 
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net


Ok. Just skimming through util.c: there is a recolor_cursor routine
which probably explains why my cursor changes color under colored
text. I'm not sure what else would have to change -- the rest seems
fundamental to drawing text, scrolling and what not (which still works
on my patched version).

One thing that would also change is xtermSetCursorBox in fontutils.c,
right now it still draws the hollow block around the underline and
looks a little strange when I lose focus. Not too sure what to make it
though, maybe a vertical bar?

-Mar.




Reply to: