Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ SetSelection functions to control output highlight

SetSelection functions to control output highlight

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Fiendish   USA  (2,558 posts)  Bio   Global Moderator
Date Mon 27 May 2019 09:11 PM (UTC)
Message
Like the opposites of GetSelectionStartColumn, GetSelectionEndColumn, GetSelectionStartLine, and GetSelectionEndLine. Instead of reporting what is highlighted, they would control what is highlighted.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 28 May 2019 06:54 AM (UTC)
Message
Why would you want to do this? If I am sitting at my keyboard I don't expect text to suddenly be selected while I am gazing out the window at the unicorns.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fiendish   USA  (2,558 posts)  Bio   Global Moderator
Date Reply #2 on Tue 28 May 2019 01:46 PM (UTC)

Amended on Tue 28 May 2019 07:59 PM (UTC) by Fiendish

Message
Quote:
I don't expect text to suddenly be selected while I am gazing out the window at the unicorns

It would be based on actual user interaction in a way that makes sense.

I've written a splitscreen scrollback plugin that shows the most recent text as a native-looking overlay over the bottom section of the output when the player scrolls up, and it allows text highlighting using the same code that I developed over the years for my chat capture miniwindow. If a player highlights some text in the main output and then scrolls up, I can currently propagate their highlight into the miniwindow so that they still see it active, but if they highlight something in the miniwindow I have no way to propagate that back to the main output (both for access to native Ctrl+C copying and also so that the highlight is still there when they scroll all the way to the bottom and the overlay goes away).

Here's a video showing what it currently looks like: https://gofile.io/?c=WQ2JJ1

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 01 Jun 2019 12:20 AM (UTC)
Message
Added to pre-release version 5.07.

https://github.com/nickgammon/mushclient/commit/0d02b24

Template:function=SetSelection SetSelection

The documentation for the SetSelection script function is available online. It is also in the MUSHclient help file.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fiendish   USA  (2,558 posts)  Bio   Global Moderator
Date Reply #4 on Sat 01 Jun 2019 01:56 AM (UTC)
Message
Yay

https://github.com/fiendish/aardwolfclientpackage
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


19,639 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.