Change tk console cursor color

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

What command could I use to change the default color of the cursor that appears in the main tkcon console in hypermesh ?

 

I've been able to change the background color using

 .tkcon.tab1 configure -bg #000000 

, but haven't been able to do the same for the cursor.

 

Any help is appreciated.

Answers

  • tinh
    tinh Altair Community Member
    edited March 2017

    Oh, are you consuming your time to fiddle with tkconsole?:D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />

    change cursor color:

     .tkcon.tab1 configure -insertbackground red

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2017

    Oh, are you consuming your time to fiddle with tkconsole?:D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />

    change cursor color:

      .tkcon.tab1 configure -insertbackground red

     

    Thanks, this is exactly what I was looking for.

     

    Could you refer me to a list of all such functions/options that could be used to configure tkconsole ?

  • tinh
    tinh Altair Community Member
    edited March 2017

    Hi,

    You can everytime retrieve configurations of a window by : $windowname config

    ex:

    foreach Config [.tkcon.tab1 configure] {puts '[lindex $Config 0] [.tkcon.tab1 cget [lindex $Config 0]]'}

     

    or using general dumping proc 'dump' to retrieve none default configurations:

    dump .tkcon.tab1

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited March 2017

    Hi,

    You can everytime retrieve configurations of a window by : $windowname config

    ex:

    foreach Config [.tkcon.tab1 configure] {puts '[lindex $Config 0] [.tkcon.tab1 cget [lindex $Config 0]]'}

     

    or using general dumping proc 'dump' to retrieve none default configurations:

    dump .tkcon.tab1

    @tinh : Thank you. This is exactly what I was looking for.