Re: [racket-users] DrRacket caret blink

2020-11-29 Thread Robby Findler
It would be nice to have DrRacket pay attention to the os-level preference
when it exists.

Robby

On Sun, Nov 29, 2020 at 2:52 AM 'Mark' via Racket Users <
racket-users@googlegroups.com> wrote:

> It is easy to get the OS preference for Windows and Gtk. But it is
> actually _better_ to just have a config option since macOS doesn't offer
> any global config for this.
>
> On Saturday, November 28, 2020 at 11:22:21 PM UTC Robby Findler wrote:
>
>> I've pushed a change to DrRacket so you can set a preference in it to
>> turn the blink off. As Philip says, the more difficult part will be getting
>> the preference from the OS but at least that's a start.
>>
>> Robby
>>
>>
>> On Sat, Nov 28, 2020 at 2:49 PM Philip McGrath 
>> wrote:
>>
>>> On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
>>> racket...@googlegroups.com> wrote:
>>>
 (But it is still a pity that there's no config option to turn off
 blinking in DrRacket.)

>>>
>>> I agree that this would be a valuable feature to add, not just to
>>> DrRacket but to `racket/gui` in general. It seems the blinking behavior is
>>> controlled with a hard-coded interval here:
>>> https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
>>> Probably the hard part of a solution would be detecting the user's
>>> preference properly across platforms.
>>>
>>> In the meantime, I think it would be possible for a DrRacket plugin
>>> 
>>> to use `drracket:get/extend:extend-interactions-text` and
>>> `drracket:get/extend:extend-definitions-text` to override the
>>> `blink-caret`
>>> 
>>> method with a no-op.
>>>
>>> -Philip
>>>
>>> --
>>>
>> You received this message because you are subscribed to the Google Groups
>>> "Racket Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to racket-users...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/racket-users/01000176109e430d-5ed26ea0-2ae2-440b-b2f3-1c1c3115f50c-00%40email.amazonses.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/6cec713b-f619-40a0-a0f1-e1c020ff47b3n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdONq-Q_goNRrvEpcsJwWmwPi80izo6OPQB9OSm2aire-Ng%40mail.gmail.com.


Re: [racket-users] DrRacket caret blink

2020-11-29 Thread 'Mark' via Racket Users
I tried that but it gave errors. However, the errors ended by suggesting 
adding '.git' so then I ran:

raco pkg install 
https://github.com/LiberalArtist/disable-blink-caret-drracket-tool.git

and then I ran drracket -- and no blinking! (It worked on both Linux and 
Windows).
Thank you:-)

On Saturday, November 28, 2020 at 9:16:15 PM UTC Philip McGrath wrote:

> I put up a very quick version on GitHub: 
> https://github.com/LiberalArtist/disable-blink-caret-drracket-tool
>
> You should be able to install it with `raco pkg install 
> https://github.com/LiberalArtist/disable-blink-caret-drracket-tool` 
> .
>
> Hope this helps!
>
> -Philip
> On Saturday, November 28, 2020 at 3:49:39 PM UTC-5 Philip McGrath wrote:
>
>> On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
>> racket...@googlegroups.com> wrote:
>>
>>> (But it is still a pity that there's no config option to turn off 
>>> blinking in DrRacket.)
>>>
>>
>> I agree that this would be a valuable feature to add, not just to 
>> DrRacket but to `racket/gui` in general. It seems the blinking behavior is 
>> controlled with a hard-coded interval here: 
>> https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
>>  
>> Probably the hard part of a solution would be detecting the user's 
>> preference properly across platforms.
>>
>> In the meantime, I think it would be possible for a DrRacket plugin 
>> 
>>  
>> to use `drracket:get/extend:extend-interactions-text` and 
>> `drracket:get/extend:extend-definitions-text` to override the 
>> `blink-caret` 
>> 
>>  
>> method with a no-op.
>>
>> -Philip
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/9450d9a5-a197-4b27-bbf0-0d09eb2c99c3n%40googlegroups.com.


Re: [racket-users] DrRacket caret blink

2020-11-29 Thread 'Mark' via Racket Users
It is easy to get the OS preference for Windows and Gtk. But it is actually 
_better_ to just have a config option since macOS doesn't offer any global 
config for this.

On Saturday, November 28, 2020 at 11:22:21 PM UTC Robby Findler wrote:

> I've pushed a change to DrRacket so you can set a preference in it to turn 
> the blink off. As Philip says, the more difficult part will be getting the 
> preference from the OS but at least that's a start.
>
> Robby
>
>
> On Sat, Nov 28, 2020 at 2:49 PM Philip McGrath  
> wrote:
>
>> On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
>> racket...@googlegroups.com> wrote:
>>
>>> (But it is still a pity that there's no config option to turn off 
>>> blinking in DrRacket.)
>>>
>>
>> I agree that this would be a valuable feature to add, not just to 
>> DrRacket but to `racket/gui` in general. It seems the blinking behavior is 
>> controlled with a hard-coded interval here: 
>> https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
>>  
>> Probably the hard part of a solution would be detecting the user's 
>> preference properly across platforms.
>>
>> In the meantime, I think it would be possible for a DrRacket plugin 
>> 
>>  
>> to use `drracket:get/extend:extend-interactions-text` and 
>> `drracket:get/extend:extend-definitions-text` to override the 
>> `blink-caret` 
>> 
>>  
>> method with a no-op.
>>
>> -Philip
>>
>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/01000176109e430d-5ed26ea0-2ae2-440b-b2f3-1c1c3115f50c-00%40email.amazonses.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/6cec713b-f619-40a0-a0f1-e1c020ff47b3n%40googlegroups.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Robby Findler
I've pushed a change to DrRacket so you can set a preference in it to turn
the blink off. As Philip says, the more difficult part will be getting the
preference from the OS but at least that's a start.

Robby


On Sat, Nov 28, 2020 at 2:49 PM Philip McGrath 
wrote:

> On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
> racket-users@googlegroups.com> wrote:
>
>> (But it is still a pity that there's no config option to turn off
>> blinking in DrRacket.)
>>
>
> I agree that this would be a valuable feature to add, not just to DrRacket
> but to `racket/gui` in general. It seems the blinking behavior is
> controlled with a hard-coded interval here:
> https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
> Probably the hard part of a solution would be detecting the user's
> preference properly across platforms.
>
> In the meantime, I think it would be possible for a DrRacket plugin
> 
> to use `drracket:get/extend:extend-interactions-text` and
> `drracket:get/extend:extend-definitions-text` to override the
> `blink-caret`
> 
> method with a no-op.
>
> -Philip
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/01000176109e430d-5ed26ea0-2ae2-440b-b2f3-1c1c3115f50c-00%40email.amazonses.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAL3TdOOJTbHarVP-jW-7JF%3DjD_e3jN_btJ1uk-ZWufD_mChiWw%40mail.gmail.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Philip McGrath
I put up a very quick version on GitHub: 
https://github.com/LiberalArtist/disable-blink-caret-drracket-tool

You should be able to install it with `raco pkg install 
https://github.com/LiberalArtist/disable-blink-caret-drracket-tool`.

Hope this helps!

-Philip
On Saturday, November 28, 2020 at 3:49:39 PM UTC-5 Philip McGrath wrote:

> On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
> racket...@googlegroups.com> wrote:
>
>> (But it is still a pity that there's no config option to turn off 
>> blinking in DrRacket.)
>>
>
> I agree that this would be a valuable feature to add, not just to DrRacket 
> but to `racket/gui` in general. It seems the blinking behavior is 
> controlled with a hard-coded interval here: 
> https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
>  
> Probably the hard part of a solution would be detecting the user's 
> preference properly across platforms.
>
> In the meantime, I think it would be possible for a DrRacket plugin 
> 
>  
> to use `drracket:get/extend:extend-interactions-text` and 
> `drracket:get/extend:extend-definitions-text` to override the 
> `blink-caret` 
> 
>  
> method with a no-op.
>
> -Philip
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/3cd9b003-43d6-4611-85f3-69ce981705ddn%40googlegroups.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Philip McGrath
On Sat, Nov 28, 2020 at 3:10 PM 'Mark' via Racket Users <
racket-users@googlegroups.com> wrote:

> (But it is still a pity that there's no config option to turn off blinking
> in DrRacket.)
>

I agree that this would be a valuable feature to add, not just to DrRacket
but to `racket/gui` in general. It seems the blinking behavior is
controlled with a hard-coded interval here:
https://github.com/racket/gui/blob/aa5ebfec7402bdcbc3813f822caedb4a3ceb2c4c/gui-lib/mred/private/wxme/editor-canvas.rkt#L84-L104
Probably the hard part of a solution would be detecting the user's
preference properly across platforms.

In the meantime, I think it would be possible for a DrRacket plugin

to use `drracket:get/extend:extend-interactions-text` and
`drracket:get/extend:extend-definitions-text` to override the `blink-caret`

method with a no-op.

-Philip

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/01000176109e430d-5ed26ea0-2ae2-440b-b2f3-1c1c3115f50c-00%40email.amazonses.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread 'Mark' via Racket Users
I didn't know about that tool, I'll use it as I learn. Thanks!
(But it is still a pity that there's no config option to turn off blinking 
in DrRacket.)

On Saturday, November 28, 2020 at 5:10:07 PM UTC btme...@gmail.com wrote:

> I'm not sure how to disable cursor blink in DrRacket, but your 
> installation comes with a few other executables that are text only - such 
> as "gracket-text" the cursor does not blink on my installation (MacOS, 
> Racket 7.9 (bc))
>
> On Sat, Nov 28, 2020 at 4:54 AM 'Mark' via Racket Users <
> racket...@googlegroups.com> wrote:
>
>> I've just downloaded and installed Racket to try it out.
>>
>> But on both Linux and Windows the caret blinks inside DrRacket which 
>> makes it unusable for me.
>>
>> Is it possible to stop the blinking?
>>
>> On Windows I've set the system-wide caret not to blink and every other 
>> Windows program I've used respects this (except for Tcl/Tk's ttk widgets). 
>> On Linux it is trickier since I have to switch it off separately for Gtk, 
>> Qt, .Xdefaults, and .gvimrc,  but apart from login (lightdm to Xfce) I 
>> never see any blinking.
>>
>> I realise that most people _like_ caret blink and find it useful: but I'm 
>> not alone in not being able to work with it. See, e.g., 
>> https://jurta.org/en/prog/noblink
>>
>> I guess in the meantime I'll keep reading the racket docs and try it 
>> using vim.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to racket-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/racket-users/d72b60c5-c9c7-44e4-8e56-f2df4a5e1b46n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/e472a55d-0a1b-47b4-9f19-a943611e5039n%40googlegroups.com.


Re: [racket-users] DrRacket caret blink

2020-11-28 Thread Tim Meehan
I'm not sure how to disable cursor blink in DrRacket, but your installation
comes with a few other executables that are text only - such as
"gracket-text" the cursor does not blink on my installation (MacOS, Racket
7.9 (bc))

On Sat, Nov 28, 2020 at 4:54 AM 'Mark' via Racket Users <
racket-users@googlegroups.com> wrote:

> I've just downloaded and installed Racket to try it out.
>
> But on both Linux and Windows the caret blinks inside DrRacket which makes
> it unusable for me.
>
> Is it possible to stop the blinking?
>
> On Windows I've set the system-wide caret not to blink and every other
> Windows program I've used respects this (except for Tcl/Tk's ttk widgets).
> On Linux it is trickier since I have to switch it off separately for Gtk,
> Qt, .Xdefaults, and .gvimrc,  but apart from login (lightdm to Xfce) I
> never see any blinking.
>
> I realise that most people _like_ caret blink and find it useful: but I'm
> not alone in not being able to work with it. See, e.g.,
> https://jurta.org/en/prog/noblink
>
> I guess in the meantime I'll keep reading the racket docs and try it using
> vim.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/d72b60c5-c9c7-44e4-8e56-f2df4a5e1b46n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CACgrOxK6-OuSWnZhe-ntiqtZhAcXOCadepsxBT%3DgBwBH7H8Sxg%40mail.gmail.com.


[racket-users] DrRacket caret blink

2020-11-28 Thread 'Mark' via Racket Users
I've just downloaded and installed Racket to try it out.

But on both Linux and Windows the caret blinks inside DrRacket which makes 
it unusable for me.

Is it possible to stop the blinking?

On Windows I've set the system-wide caret not to blink and every other 
Windows program I've used respects this (except for Tcl/Tk's ttk widgets). 
On Linux it is trickier since I have to switch it off separately for Gtk, 
Qt, .Xdefaults, and .gvimrc,  but apart from login (lightdm to Xfce) I 
never see any blinking.

I realise that most people _like_ caret blink and find it useful: but I'm 
not alone in not being able to work with it. See, e.g., 
https://jurta.org/en/prog/noblink

I guess in the meantime I'll keep reading the racket docs and try it using 
vim.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/d72b60c5-c9c7-44e4-8e56-f2df4a5e1b46n%40googlegroups.com.