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

2020-12-28 Thread Loïc Grenié
On Sat 26 Dec 2020 at 03:03, Bob Bernstein wrote:

> On Fri, 25 Dec 2020, to...@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!
>
> I'm certain this is one of those things I knew clearly, say, as
> few years ago as ten, but getting old sucks.
>
> 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.
>

Try to look in:

https://github.com/mintty/mintty/wiki/CtrlSeqs

   ESC[1 q or ESC[2 q might solve your problem (there is a space before q).

  Hope this helps,

Loïc




> 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. 
>
> Bob B.
> --
> These are not the droids you are looking for.
>
>


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

2020-12-26 Thread Andrei POPESCU
On Sb, 26 dec 20, 11:38:30, to...@tuxteam.de wrote:
> 
> 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, 

(Neo)Vim can take advantage of such facilities, e.g. to change the 
cursor shape according to the mode.

https://stackoverflow.com/questions/6488683/how-do-i-change-the-cursor-between-normal-and-insert-modes-in-vim

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


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

2020-12-26 Thread tomas
On Fri, Dec 25, 2020 at 08:46:02PM -0500, Bob Bernstein wrote:
> On Fri, 25 Dec 2020, to...@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. 

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


signature.asc
Description: Digital signature


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

2020-12-25 Thread Will Mengarini
* Bob Bernstein  [20-12/25=Fr 20:46 -0500]:
> 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.

That sounds as if the problem remains unsolved.  Three solutions:

The first is based on Googling escape sequences for
mintty, but is untested since I don't run mintty.

The second is most likely to work if you run the 'screen' application
inside mintty, then control the cursor from inside screen.
It's possible that the first solution, for raw mintty, will
not work in screen, whereas the second will in screen under
mintty; obviously, I can't test under mintty, but know that
the second solution does work in screen under most terminals.

The third solution works in terminals where the terminfo
database is properly set up, which is most Unix/Linux terminals.

First solution (for mintty):
  # Define these aliases:
  alias minttycnorm="echo \$'\\e[5q'"
  alias minttycvvis="echo \$'\\e[1q'"
  # Then use the 'minttycvvis' command to switch to a block cursor,
  # and the 'minttycnorm' command to switch back.

Second solution (for screen):
  # Define these aliases:
  alias screencnorm="echo \$'\\e[34h'"
  alias screencvvis="echo \$'\\e[34l'"
  # Then use the 'screencvvis' command to switch to a block cursor,
  # and the 'screencnorm' command to switch back.

Third solution (for orthodox terminals with correct terminfo):
  # Use the command 'tput cvvis' to switch terminal to a block cursor.
  # Use the command 'tput cnorm' to switch terminal back to normal.

I suggest trying all of these.



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

2020-12-25 Thread Bob Bernstein

On Fri, 25 Dec 2020, to...@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!


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


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.


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. 


Bob B.
--
These are not the droids you are looking for.



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

2020-12-25 Thread Cindy Sue Causey
On 12/25/20, to...@tuxteam.de  wrote:
> On Fri, Dec 25, 2020 at 02:13:29PM -0500, The Wanderer wrote:
>> On 2020-12-25 at 14:05, Bob Bernstein wrote:
>>
>> > This question could not possibly be more OT, but banking on the
>> > yuletide spirit and the generally benign mood of most on this list, I
>> > make so bold as to pose it thus, bluntly.
>> >
>> > I have prowled in 'man nanorc' for some time now...
>>
>> Can you clarify what you mean by the $subject question?
>>
>> When I launch nano, the cursor is already in the shape of a rectangular
>> block.
>
> [...]
>
> I think that's the OP's question.
>
> FWIW, "my" nano also has a "block cursor". But so does the
> terminal from which I start nano. @Bob: is that the case
> for you?
>
> Perhaps what you have to do is to change the shape of your
> terminal's cursor, and nano inherits it.
>
> How to do that depends on your terminal. If it's xterm, I
> could help you look it up :-)


I remembered this being a User CHOICE for xfce4-terminal so I took a
quick peek. It's found under:

Edit > Preferences > General tab > Cursor

But that might differ completely for other packages.

Xfce4-terminal's options are: Block, I-Beam, and Underline. We're also
given the secondary option for it to blink or not to blink.

Mine is a blinking block so there's half a chance of finding it on the
screen. :)

Merry jollies..

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* runs with birdseed *



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

2020-12-25 Thread Weaver
On 26-12-2020 06:53, Curt wrote:
> On 2020-12-25, Bob Bernstein  wrote:
>> This question could not possibly be more OT, but banking on the
>> yuletide spirit and the generally benign mood of most on this
>> list, I make so bold as to pose it thus, bluntly.
>>
>> I have prowled in 'man nanorc' for some time now...
> 
>>From what I've gathered the cursor is drawn by the terminal or terminal
> emulator and not by the application running in the terminal.

Correct!
If the terminal you're using doesn't supply you with that facility, it
might be time to look at an alternative.
There are many to choose from.
Cheers!

Harry

-- 
`We'll know our disinformation program is complete when
 everything the American public believes is false'.
 -- William Casey, CIA Director (first staff meeting, 1981)



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

2020-12-25 Thread Curt
On 2020-12-25, Bob Bernstein  wrote:
> This question could not possibly be more OT, but banking on the 
> yuletide spirit and the generally benign mood of most on this 
> list, I make so bold as to pose it thus, bluntly.
>
> I have prowled in 'man nanorc' for some time now...

>From what I've gathered the cursor is drawn by the terminal or terminal
emulator and not by the application running in the terminal.


> Thank you,
>



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

2020-12-25 Thread tomas
On Fri, Dec 25, 2020 at 02:13:29PM -0500, The Wanderer wrote:
> On 2020-12-25 at 14:05, Bob Bernstein wrote:
> 
> > This question could not possibly be more OT, but banking on the 
> > yuletide spirit and the generally benign mood of most on this list, I
> > make so bold as to pose it thus, bluntly.
> > 
> > I have prowled in 'man nanorc' for some time now...
> 
> Can you clarify what you mean by the $subject question?
> 
> When I launch nano, the cursor is already in the shape of a rectangular
> block.

[...]

I think that's the OP's question.

FWIW, "my" nano also has a "block cursor". But so does the
terminal from which I start nano. @Bob: is that the case
for you?

Perhaps what you have to do is to change the shape of your
terminal's cursor, and nano inherits it.

How to do that depends on your terminal. If it's xterm, I
could help you look it up :-)

Cheers
 - t


signature.asc
Description: Digital signature


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

2020-12-25 Thread The Wanderer
On 2020-12-25 at 14:05, Bob Bernstein wrote:

> This question could not possibly be more OT, but banking on the 
> yuletide spirit and the generally benign mood of most on this list, I
> make so bold as to pose it thus, bluntly.
> 
> I have prowled in 'man nanorc' for some time now...

Can you clarify what you mean by the $subject question?

When I launch nano, the cursor is already in the shape of a rectangular
block. If the shape of the cursor is what you mean, there must be
something different about your system from mine, and we could try to
figure out what.

If instead you mean something else (the ability to define a "block" of
text with the cursor?), then you'll need to explain what that something is.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


May I please have a block cursor in nano?

2020-12-25 Thread Bob Bernstein
This question could not possibly be more OT, but banking on the 
yuletide spirit and the generally benign mood of most on this 
list, I make so bold as to pose it thus, bluntly.


I have prowled in 'man nanorc' for some time now...


Thank you,

--
A person of great honour in Ireland (who was pleased to
stoop so low as to look into my mind) used to tell me that
my mind was like a conjured spirit, that would do mischief
if I did not give it employment.

   Jonathan Swift