• unwanted cursor blink

    From Mark@21:1/5 to All on Tue Jun 6 01:17:01 2023
    My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
    But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:

    #!/usr/bin/env wish
    option add *insertOffTime 0
    set filename [tk_getOpenFile]
    puts $filename
    exit

    Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblink

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Tue Jun 6 12:22:02 2023
    Am 06.06.2023 um 10:17 schrieb Mark:
    My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
    But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:

    #!/usr/bin/env wish
    option add *insertOffTime 0
    set filename [tk_getOpenFile]
    puts $filename
    exit

    Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblink

    Hi Mark,
    thank you for the post. Could you give more details:
    - platform / Window manager if on Linux
    - TCL version
    - tk version

    Thank you,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to Harald Oehlmann on Tue Jun 6 03:43:34 2023
    On Tuesday, June 6, 2023 at 11:22:05 AM UTC+1, Harald Oehlmann wrote:
    Am 06.06.2023 um 10:17 schrieb Mark:
    My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
    But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:

    #!/usr/bin/env wish
    option add *insertOffTime 0
    set filename [tk_getOpenFile]
    puts $filename
    exit

    Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblink
    Hi Mark,
    thank you for the post. Could you give more details:
    - platform / Window manager if on Linux
    - TCL version
    - tk version

    Thank you,
    Harald

    Hi Harald,

    I tried with:
    Tcl v8.6.11/Tk v8.6 on
    Linux 5.10.0-19-amd64 x86_64

    and with:
    Tcl v8.7a5/Tk v8.7 on
    Linux 5.10.0-19-amd64 x86_64

    Xfce 4.16 on Debian 11.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul Obermeier@21:1/5 to All on Tue Jun 6 14:56:13 2023
    Am 06.06.2023 um 10:17 schrieb Mark:
    My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
    But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:

    #!/usr/bin/env wish
    option add *insertOffTime 0
    set filename [tk_getOpenFile]
    puts $filename
    exit

    Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblink

    The option insertOffTime only works with "standard" Tk widgets, but not with ttk widgets:

    package require Tk

    option add *insertOffTime 0

    ttk::entry .e1
    pack .e1 -expand true -fill both
    .e1 insert end "ttk::entry is blinking"

    entry .e2
    pack .e2 -expand true -fill both
    .e2 insert end "entry is not blinking"

    Don't know, if blinking can be specified using ttk:styles.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to Paul Obermeier on Tue Jun 6 08:03:16 2023
    On Tuesday, June 6, 2023 at 1:56:13 PM UTC+1, Paul Obermeier wrote:
    Am 06.06.2023 um 10:17 schrieb Mark:
    My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
    But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:

    #!/usr/bin/env wish
    option add *insertOffTime 0
    set filename [tk_getOpenFile]
    puts $filename
    exit

    Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblink
    The option insertOffTime only works with "standard" Tk widgets, but not with ttk widgets:

    package require Tk

    option add *insertOffTime 0

    ttk::entry .e1
    pack .e1 -expand true -fill both
    .e1 insert end "ttk::entry is blinking"

    entry .e2
    pack .e2 -expand true -fill both
    .e2 insert end "entry is not blinking"

    Don't know, if blinking can be specified using ttk:styles.

    Paul

    Hi Paul,

    Yes I knew that insertOffTime only applied to non-styled widgets. But I _thought_ that the ttk widgets were going to respect the user's blinking preferences. See https://core.tcl-lang.org/tk/tktedit/3531366fffffffffffffffffffffffffffffffff

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark@21:1/5 to Mark on Tue Jun 6 11:21:23 2023
    On Tuesday, June 6, 2023 at 4:03:19 PM UTC+1, Mark wrote:
    On Tuesday, June 6, 2023 at 1:56:13 PM UTC+1, Paul Obermeier wrote:
    Am 06.06.2023 um 10:17 schrieb Mark:
    My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
    But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:

    #!/usr/bin/env wish
    option add *insertOffTime 0
    set filename [tk_getOpenFile]
    puts $filename
    exit

    Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblink
    The option insertOffTime only works with "standard" Tk widgets, but not with ttk widgets:

    package require Tk

    option add *insertOffTime 0

    ttk::entry .e1
    pack .e1 -expand true -fill both
    .e1 insert end "ttk::entry is blinking"

    entry .e2
    pack .e2 -expand true -fill both
    .e2 insert end "entry is not blinking"

    Don't know, if blinking can be specified using ttk:styles.

    Paul
    Hi Paul,

    Yes I knew that insertOffTime only applied to non-styled widgets. But I _thought_ that the ttk widgets were going to respect the user's blinking preferences. See https://core.tcl-lang.org/tk/tktedit/3531366fffffffffffffffffffffffffffffffff

    It now appears that the patches to respect cursor blink from the above ticket have not been applied and maybe won't be. So I'm stuck with using the non-ttk widgets for any that have blinking cursors. Gtk, Qt, and FLTK all support switching off cursor
    blink: as does Windows since 2000, so clearly _some_ people need this functionality...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)