From: "Scott Flowers" <flowerss@cranky.ca>
To: 9front@9front.org
Subject: Re: [9front] Bug or inconsistency in cursor behaviour?
Date: Mon, 28 Oct 2024 18:35:30 -0600 [thread overview]
Message-ID: <c612a584-3a56-44cf-a9c1-f35ed398808c@app.fastmail.com> (raw)
In-Reply-To: <CAG3JMtaM3edXCD9Ncpcoxj-qJPr4k6jK6icvW-E_z7qw3a7FTQ@mail.gmail.com>
Well, my original email was intended to say more like "Is this a bug?" rather than "This is a bug!" Then, in the event that anyone thought it was a bug, in anticipation of somebody going "Patches welcome!" I made a patch.
I understand your explanation of the selected text BEING the cursor and so the rio and acme behaviour make sense in that context. I'm still not clear on whether sam acts differently because of history, a limitation of its original hardware, or some kind of deeply thought out reason I don't know about. Sam to me is mysterious and inscrutable.
I'll go see if I can find that thread on 9fans, which admittedly I don't frequent.
Scott
On Mon, 28 Oct 2024, at 17:45, Thaddeus Woskowiak wrote:
> What makes you call the cursor behavior of Plan 9 odd or a bug? Just
> because it doesn't behave like one of the big three does not mean it
> is broken. Sam predates Plan 9 originating on Unix and ran on the Blit
> terminals so it has different roots.
>
> And if memory serves me correctly there is a rant on 9fans explaining
> this exact expectation of cursor behavior (Boyd Roberts or BruceE
> maybe?). Basically the current expected behavior originated from
> Windows and copied by others.
>
> There is a logical argument to the Plan 9 behavior: First, the cursor
> disappears when you make a selection because the cursor *IS* the
> selection. So if the selection is the cursor then it makes sense that
> pressing an arrow key moves the cursor one character over in that
> direction. The Windows way is odd because the cursor does not move
> when you first press the arrow key which breaks cursor logic. I
> believe this is the same argument presented in the 9fans post I
> mentioned though more nuanced.
>
> On Mon, Oct 28, 2024 at 4:21 PM <flowerss@cranky.ca> wrote:
> >
> > I have noticed an odd behaviour when using the arrow keys when text is selected in 9front, and I'm wondering if it's a bug, multiple bugs, or just the way things work.
> >
> > If I have a string of text in a shell or acme, and I select one or more characters with the mouse, and then use the right arrow key, the text gets deselected, and the cursor moves one character past the right end of the selected text. If I use the left arrow key, the cursor moves to one character to the left of the previously selected text. It feels like the resultin position of the cursor has gone one character too far left or right.
> >
> > In sam, this behaviour is different. If I select text in sam, and then hit the left arrow key, the cursor moves one character to the left of the initially selected text, and if I hit the right arrow key, the cursor moves to the right of the first character of the previously selected text. This also seems odd.
> >
> > In Windows, MacOS and all the Linux graphical text manipulation apps I have tried, if you select text and then hit the left arrow, the cursor moves to the beginning of the selection, and the right arrow moves to the end of the selection. This feels like the more appropriate behaviour to me. Am I out to lunch?
> >
> > Thanks,
> >
> > Scott
>
next prev parent reply other threads:[~2024-10-29 0:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-28 20:19 flowerss
2024-10-28 22:49 ` Scott Flowers
2024-10-28 22:59 ` Scott Flowers
2024-10-28 23:04 ` Scott Flowers
2024-10-28 23:45 ` Thaddeus Woskowiak
2024-10-29 0:35 ` Scott Flowers [this message]
2024-10-29 9:59 ` hiro
2024-10-29 15:16 ` Scott Flowers
2024-10-29 17:40 ` hiro
2024-10-29 17:41 ` hiro
2024-10-29 1:40 ` ori
2024-10-29 3:31 ` Scott Flowers
2024-10-29 4:32 ` umbraticus
2024-10-29 9:26 ` hiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c612a584-3a56-44cf-a9c1-f35ed398808c@app.fastmail.com \
--to=flowerss@cranky.ca \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).