b m wrote:
> I have been a LyX user for many many years now and I would like
> to thank the developers for your dedication.
> 
> LyX used to have a block cursor, but in the Qt version now there
> is only a blinking line cursor. It is extremely hard to see the
> cursor on a page that is dense with equations. It would greatly
> enhance usability to add a block cursor.

I have to say that I too like emacs notion of a cursor. Looking at the 
code, it appears that all we are missing is a proper notion of 'width'. 
Ie, how wide the character embedded by the cursor actually is.

I think that what is missing is that bv.cursor().getDim() should return a 
width also. See this in LyXScreen::showCursor:

        int ascent, descent;
        bv.cursor().getDim(ascent, descent);
        int h = ascent + descent;
        int x = 0;
        int y = 0;
        bv.cursor().getPos(x, y);
        y -= ascent;

So that it could then pass on 'w' to the frontend showCursor routine:
        showCursor(x, y, h, shape);

That would have the added advantage of removing the kludge in this 
frontend routine of calculating the width as 1/3 height when using an 
L_SHAPE cursor.

-- 
Angus

Reply via email to