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

Re: May I please have a block cursor in nano?



On Fri, Dec 25, 2020 at 08:46:02PM -0500, Bob Bernstein wrote:
> On Fri, 25 Dec 2020, tomas@tuxteam.de wrote:
> 
> >Perhaps what you have to do is to change the shape of your
> >terminal's cursor, and nano inherits it.
> 
> Firstly, thanks to ALL of you who took time out on this holiday to
> answer my (pretty dumb) question!

There are no dumb questions. Any questions?

;-)

> I'm certain this is one of those things I knew clearly, say, as few
> years ago as ten, but getting old sucks.

It does have its upsides, too (I speak from experience :)

> OF COURSE the app looks to the terminal for its cursor policy, and
> OF COURSE my terminal (mintty running in cygwin -- LONG story) also
> lacked a block cursor.

This is not 100% clear. For one, some terminal emulators do have escape
sequences to change "cursor style" on the fly (xterm [1], among others),
so a terminal-based application /could/ try to make use of that, for the
other, your app might be a graphical app (nano is not, but that has to
be established in the first place), then all bets are off.

> Thank you all. You people are just great, but maybe I'm feeling that
> on account of all the time I've had to spend with my wife's family
> over the holidays. <wink><wink><nudge><nudge>

You're welcome :-)

Enjoy the time with your extended family.

Cheers

[1] https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-q.1CB1

 - t

Attachment: signature.asc
Description: Digital signature


Reply to: