Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-05-2016, 04:59 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,098
Example: Color Scheme Scripting

Watch the video: Color Schemes and ANSI Color Palettes
Consider the following scenarios...
  • Sharing a configuration with team members and want a quick way to get at your preferred colors?
  • Or, do you just want to have your color schemes automatically rotate through each time you connect in order to avoid the monotony of the same view?
  • Or, do you simply want to quickly cycle through all available color schemes in rapid succession to see which one you prefer most?
Whatever your need, these examples demonstrate how you can select pre-defined color schemes from within a SecureCRT script.

Two different examples are available:
SetColorScheme.py
Given a value that matches the name of an existing color scheme in SecureCRT, this script changes the color scheme in the current open session to match that color scheme provided. Name that scheme, press the button, and it's yours. SetColorScheme.py.txt is available for downloading below.

ColorSchemeAutoRotation.py
Each time this script is run, it rotates your session color scheme setting to the next color scheme defined in SecureCRT's global color scheme list. Use it as a Logon Script to automatically cycle through your color schemes each time you connect. Boredom prevention, perhaps? Nope! It's a 5x click-reduction efficiency increase. ColorSchemeAutoRotation.py.txt is available for downloading below.
Update: 13 Oct, 2017. Script updated to support new color scheme mechanism introduced in 8.3.x versions of SecureCRT. This updated version of the script should work in both older and newer versions, but if you'd like access to the older method, it's attached below as "ColorSchemeAutoRotation-8.1.x-and-earlier.py.txt"

"Happiness is a nice, easy-on-the-eyes color scheme."

Consider mapping SecureCRT button bar buttons to run these scripts, as demonstrated in this video.

Here's a demonstration of the new color schemes now available in SecureCRT 8.3:

Birds Of Paradise


Chalkboard


Ciapre


Dark Pastel


Desert


Espresso


Idletoes


Invisibone


Novel


Solarized Darcula


Solarized Dark


Solarized Light


Tomorrow


Zenburn




Want to have even more color schemes available?
A new example script is now available which will import nearly 200 different color schemes into SecureCRT:
ImportAdditionalColorSchemesIntoGlobalConfig.py
The following is a list of the color schemes that the above script will ensure are available in SecureCRT:
Code:
_bash                       Harper                       Paul Millr
3024 Day                    Hemisu Dark                  Pencil Dark
3024 Night                  Hemisu Light                 Pencil Light
Aci                         Highway                      Peppermint
Aco                         Hipster Green                Pnevma
Adventure Time              Homebrew                     PowerShell
Afterglow                   Hurtado                      Pro
Alien Blood                 Hybrid                       Red Alert
Argonaut                    ibm3270                      Red Sands
Arthur                      IC Green PPL                 Relaxed
Atom                        IC Orange PPL                Rippedcasts
Azu                         Idletoes                     Royal
base16: Google (dark)       Invisibone                   Sat
base16: Google (light)      Ir Black                     Sea Shells
Belafonte Day               Jackie Brown                 Seafoam Pastel
Belafonte Night             Japanesque                   Seti
Bim                         Jellybeans                   Shaman
Black / Cyan                Jup                          Shel
Black / Floral White        Kibble                       Slate
Blazer                      kokuban                      Smyck
Borland                     Later This Evening           Snazzy
Broadcast                   Lavandula                    Soft Server
Brogrammer                  Liquid Carbon                Solarized Darcula
C64                         Liquid Carbon Transparent    Solarized Dark
Cai                         Maia                         Solarized Dark Higher Contrast
Chalk                       Man Page                     Solarized Light
Chalkboard                  Mar                          Spacedust
Ciapre                      Material                     SpaceGray
Clone of Ubuntu             Mathias                      SpaceGray Eighties
CLRS                        Medallion                    SpaceGray Eighties Dull
Cobalt 2                    Misterioso                   Spring
Cobalt Neon                 Miu                          Square
Colorcli                    Molokai                      Srcery
Crayon Pony Fish            Mona Lisa                    summer-pop
Dark Pastel                 mono-amber                   Sundried
Darkside                    Monochrome                   Symphonic
Desert                      mono-cyan                    SynthWave
Dimmed Monokai              mono-green                   Teerb
DOS                         Monokai Dark                 Terminal Basic
Dracula                     Monokai Soda                 Terminix Dark
Earthsong                   mono-red                     Thayer Bright
Elemental                   mono-white                   Tin
Elementary                  mono-yellow                  Tomorrow
Elic                        N0tch2k                      Tomorrow Night
Elio                        neon-night                   Tomorrow Night Blue
Espresso                    Neopolitan                   Tomorrow Night Bright
Espresso Libre              Nep                          Tomorrow Night Eighties
Fairy Floss                 Neutron                      Toy Chest
Fairy Floss Dark            Night Owl                    Traditional
Fishtank                    Nightlion V1                 Treehouse
Flat                        Nightlion V2                 Twilight
Flat Remix                  nighty                       Ura
Flatland                    Nord                         Urple
Floral White / Dark Cyan    Nord Light                   Vag
Foxnightly                  Novel                        Vaughn
Freya                       Obsidian                     Vibrant Ink
Frontend Delight            Ocean                        VS Code Dark+
Frontend Fun Forrest        Ocean Dark                   Warm Neon
Frontend Galaxy             Oceanic Next                 Wez
Github                      Ollie                        White / Black
gooey                       One Dark                     White / Blue
gotham                      One Half Black               Wild Cherry
Grape                       One Light                    Windows
Grass                       palenight                    Wombat
Gray                        Pali                         Wryan
Gruvbox                     PaperColor Dark              Yellow / Black
Gruvbox Dark                PaperColor Light             Zenburn
Hardcore                    Paraiso Dark


--Jake
Attached Images
File Type: png BirdsOfParadise.png (44.6 KB, 15082 views)
File Type: png Chalkboard.png (45.7 KB, 11466 views)
File Type: png Ciapre.png (44.2 KB, 11543 views)
File Type: png DarkPastel.png (41.4 KB, 11612 views)
File Type: png Desert.png (43.0 KB, 11509 views)
File Type: png Espresso.png (43.4 KB, 11579 views)
File Type: png Idletoes.png (43.3 KB, 11591 views)
File Type: png Invisibone.png (45.1 KB, 11420 views)
File Type: png Novel.png (44.8 KB, 11540 views)
File Type: png SolarizedDarcula.png (43.8 KB, 11483 views)
File Type: png SolarizedDark.png (44.2 KB, 12439 views)
File Type: png SolarizedLight.png (44.7 KB, 11645 views)
File Type: png Tomorrow.png (43.9 KB, 11481 views)
File Type: png Zenburn.png (44.1 KB, 11391 views)
Attached Files
File Type: txt SetColorScheme.py.txt (1.3 KB, 4781 views)
File Type: txt ColorSchemeAutoRotation-8.1.x-and-earlier.py.txt (7.9 KB, 2722 views)
File Type: txt ColorSchemeAutoRotation.py.txt (10.5 KB, 4706 views)
File Type: txt ImportAdditionalColorSchemesIntoGlobalConfig.py.txt (72.8 KB, 536 views)
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support

Last edited by jdev; 02-25-2021 at 02:21 PM.
Closed Thread

Tags
example script


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:50 AM.