Coloring made easy

Add a little color to your iSeries life.

This Content Component encountered an error

This is an different take on Navee Dronavalli's Tip: Add some colors to your sources. Using the Client-iSeries Access Popup Keypad, it reduces the effort of inserting hex codes to change the display attributes of text to a Right Click/Left Click operation. In addition to colorizing source code, it's also great for dynamically highlighting or color coding text data, etc.

Some setup is required. Copying and pasting the appropriate pieces of the included code into correctly named macro and KeyPad customization files can be accomplished in about 10 minutes. (You can use the files that are placed in the same directory on your PC as the Client-iSeries Access connection and workstation profiles.

All that is left is to configure your WorkStation Emulation session to use the created Color.pmp file as a User Defined Popup-Keypad-File (see Client-iSeries Access Help for instructions).

To use: Place your session cursor where you want the code to reside, right-click on your mouse to display this keypad, and left-click the appropriate button.


   
  
[COLOR.PMP (Popup Keypad Customization File)]

[Profile]
id=PMP
Description=
PoppadInfo=2,4,8

[POPPAD]
POP1-1-1=MACRO BLUE
POP1-1-2=MACRO GREEN
POP1-1-3=MACRO PINK
POP1-1-4=MACRO RED
POP1-1-5=MACRO REDUL
POP1-1-6=MACRO TURQCSRI
POP1-1-7=MACRO WHITERI
POP1-1-8=MACRO YELLOWUL
POP1-2-1=MACRO BLUERI
POP1-2-2=MACRO GREENRI
POP1-2-3=MACRO PINKRI
POP1-2-4=MACRO REDBL
POP1-2-5=MACRO REDULBL
POP1-2-6=MACRO TURQUL
POP1-2-7=MACRO WHITEUL
POP1-2-8=[dead]
POP1-3-1=MACRO BLUEUL
POP1-3-2=MACRO GREENUL
POP1-3-3=MACRO PINKUL
POP1-3-4=MACRO REDRI
POP1-3-5=MACRO REDULRI
POP1-3-6=MACRO TURQULRI
POP1-3-7=MACRO YELLCSRI
POP1-3-8=[dead]
POP1-4-1=MACRO NONDSP
POP1-4-2=MACRO GRNULRI
POP1-4-3=MACRO PINKULRI
POP1-4-4=MACRO REDRIBL
POP1-4-5=MACRO TURQCS
POP1-4-6=MACRO WHITE
POP1-4-7=MACRO YELLOWCS
POP1-4-8=[dead]
POP2-1-1=[pf1]
POP2-1-2=[pf5]
POP2-1-3=[pf9]
POP2-1-4=[pf13]
POP2-1-5=[pf17]
POP2-1-6=[pf21]
POP2-1-7=[roll down]
POP2-1-8=[dup]
POP2-2-1=[pf2]
POP2-2-2=[pf6]
POP2-2-3=[pf10]
POP2-2-4=[pf14]
POP2-2-5=[pf18]
POP2-2-6=[pf22]
POP2-2-7=[roll up]
POP2-2-8=[help]
POP2-3-1=[pf3]
POP2-3-2=[pf7]
POP2-3-3=[pf11]
POP2-3-4=[pf15]
POP2-3-5=[pf19]
POP2-3-6=[pf23]
POP2-3-7=[local copy]
POP2-3-8=[host print]
POP2-4-1=[pf4]
POP2-4-2=[pf8]
POP2-4-3=[pf12]
POP2-4-4=[pf16]
POP2-4-5=[pf20]
POP2-4-6=[pf24]
POP2-4-7=[sys attn]
POP2-4-8=[test request]

[Color]
Window1Bk=0,0,0
Pad1Text=0,128,192
POP1-1-1=128,128,128,0,0,255,192,192,192, , ,
POP1-1-2=128,128,128,0,170,0,192,192,192, , ,
POP1-1-3=128,128,128,255,0,255,192,192,192, , ,
POP1-1-4=128,128,128,255,0,0,192,192,192, , ,
POP1-1-5=128,128,128,255,0,0,192,192,192, , ,
POP1-1-6=0,255,255, , , ,192,192,192, , ,
POP1-1-7=255,255,255, , , , , , , , ,
POP1-1-8=128,128,128,255,255,0, , , , , ,
POP1-2-1=0,0,255, , , ,192,192,192, , ,
POP1-2-2=0,170,0, , , ,192,192,192, , ,
POP1-2-3=255,0,255, , , ,192,192,192, , ,
POP1-2-4=128,128,128,255,0,0,192,192,192, , ,
POP1-2-5=128,128,128,255,0,0,192,192,192, , ,
POP1-2-6=128,128,128,0,255,255,192,192,192, , ,
POP1-2-7=128,128,128,255,255,255, , , , , ,
POP1-2-8=128,128,128, , , , , , , , ,
POP1-3-1=128,128,128,0,0,255,192,192,192, , ,
POP1-3-2=128,128,128,0,170,0,192,192,192, , ,
POP1-3-3=128,128,128,255,0,255,192,192,192, , ,
POP1-3-4=255,0,0, , , ,192,192,192, , ,
POP1-3-5=255,0,0, , , ,192,192,192, , ,
POP1-3-6=0,255,255, , , ,192,192,192, , ,
POP1-3-7=255,255,0, , , , , , , , ,
POP1-3-8=128,128,128, , , , , , , , ,
POP1-4-1=128,128,128,130,130,130,192,192,192, , ,
POP1-4-2=0,170,0, , , ,192,192,192, , ,
POP1-4-3=255,0,255, , , ,192,192,192, , ,
POP1-4-4=255,0,0, , , ,192,192,192, , ,
POP1-4-5=128,128,128,0,255,255,192,192,192, , ,
POP1-4-6=128,128,128,255,255,255,192,192,192, , ,
POP1-4-7=128,128,128,255,255,0, , , , , ,
POP1-4-8=128,128,128, , , , , , , , ,

[Green.mac (Green macro file)]
Description =
apl 20_

[GreenRI.mac (Green Reverse Image macro file)]
Description =
apl 21_

[White.mac (White macro file)]
Description =
apl 22_

[WhiteRI.mac (White Reverse Image macro file)]
Description =
apl 23_

[GreenUL.mac (Green Underline macro file)]
Description =
apl 24_

[GrnULRI.mac (Green Underline Reverse Image macro file)]
Description =
apl 25_

[WhiteUL.mac (White Underline macro file)]
Description =
apl 26_

[NonDsp.mac (Non-Display macro file)]
Description =
apl 27_

[Red.mac (Red macro file)]
Description =
apl 28_

[RedRI.mac (Red Reverse Image macro file)]
Description =
apl 29_

[RedBL.mac (Red Blinking macro file)]
Description =
apl 2a_

[RedRIBL.mac (Red Reverse Image Blinking macro file)]
Description =
apl 2b_

[RedUL.mac (Red Underline macro file)]
Description =
apl 2c_

[RedULRI.mac (Red Underline Reverse Image macro file)]
Description =
apl 2d_

[RedULBL.mac (Red Underline Blinking macro file)]
Description =
apl 2e_

[TurqCS.mac (Turquoise Column Separator macro file)]
Description =
apl 30_

[TurqCSRI.mac (Turquoise Column Separator Reverse Image macro file)]
Description =
apl 31_

[YellowCS.mac (Yellow Column Separator macro file)]
Description =
apl 32_

[YellCSRI.mac (Yellow Column Separated Reverse Image macro file)]
Description =
apl 33_

[TurqUL.mac (Turquoise Underline macro file)]
Description =
apl 34_

[TurqULRI.mac (Turquoise Underline Reverse Image macro file)]
Description =
apl 35_

[YellowUL.mac (Yellow Underline macro file)]
Description =
apl 36_

[Pink.mac (Pink macro file)]
Description =
apl 38_

[PinkRI.mac (Pink Reverse Image macro file)]
Description =
apl 39_

[Blue.mac (Blue macro file)]
Description =
apl 3a_

[BlueRI.mac (Blue Reverse Image macro file)]
Description =
apl 3b_

[PinkULRI.mac (Pink Underline Reverse Image macro file)]
Description =
apl 3d_

[PinkUL.mac (Pink Underline macro file)]
Description =
apl 3c_

[BlueUL.mac (Blue Underline macro file)]
Description =
apl 3e_

  
This was first published in June 2003

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close