Life, the Internet, and Everything!

How to Colorize Your Source Code in SEU

Yes, I’m perfectly aware there are numerous advanced editors available that handle RPG and CL, and perform the syntax checking we are all familiar with using SEU. However, it’s not always possible to use RSE or the other editors in all situations. Some companies may not want 3rd party software and editors accessing their iSeries, or maybe you’re working on a project where you find yourself plunked down at a desktop PC that’s either quite old or has limited capabilities.

You find yourself looking at an ugly, old green screen version of SEU. Yucko.

All hope is not lost. You can make SEU readable and be comfortable with SEU once again. It’s a simple little trick.

First, it will only work on very good 5250 emulators like Client Access that allow for semi-advanced keyboard mapping. I will use CA as the example since it’s what I use now.

Write down these codes. They will come in handy later. They are the hex values associated with a particular color on the 5250 display. When you use the COLOR attribute in a Display File, these codes are placed in a single byte in front of the text or field on a display to render the color. That is how the 5250 display works.

The codes I colored with red are those that make the most sense for me to use in SEU. You can experiment and see if the others make sense for you. (These are in no particular order).

Color

Code

Color

Code

Color

Code

Color

Code

GRN

20

WHT

22

GRN UL

21

WHT UL

26

GRN RI

21

WHT RI

23

GRN UL RI

25

ND

27

RED

28

RED BL

2A

RED RI

29

RED BL RI

2B

RED UL

2C

RED UL BL

2E

RED UL RI

2D

TRQ

30

TRQ RI

31

YLW

32

YLW RI

33

TRQ UL

34

TRQ UL RI

35

YLW UL

36

ND CS

37

PNK

38

PNK RI

39

BLU

3A

BLU RI

3B

PNK UL

3C

PNK UL RI

3C

PNK UL RI

3D

BLU UL

3E

Keep in mind – the colors TRQ (turquoise) and YLW (yellow) already have column separators on most displays, so underlining them looks atrocious. As does any BL (blinking) and some of the RI (reverse image). RED UL RI (red underlined and reverse image) makes my eyes spin out of control.

Now that you’ve picked your colors, it’s just a matter of mapping them into Client Access (or you favorite emulator). Just follow these simple steps.

Open your emulator and find the option for keyboard mapping. In the default Client Access configuration it’s a little icon on the second row of the toolbar that looks like a little tiny keyboard. If you hover you mouse over it the tooltip “Remap keyboard functions” should appear.

Click the icon. A large window that mimics a keyboard map will appear. In the upper half it says “Select a Key”. In the lower right it says “Change Current Actions for Selected Key”. When the window first opens, the Esc key should be highlighted. If you look in the lower right, you’ll see what the key does by default (Base), and what it does when used in a key combination (Shift+Esc, Ctrl+Esc, etc.).

I avoided using any of the Ctrl or Shift combinations since they are very common, and I certainly didn’t want to confuse myself with AltGr or CtrlShift. I settled on using the Alt key plus another key to set my colors. You can decide on another combination that suits you.

(Note: I did initially set up reverse image colors using the CtrlShift option, but I never use it. It was just too much colorization).

First, let’s set the color white (also know as highlight). Click on the letter ‘W’ in the keyboard map. In the box next to the control key you want to use (min would be Alt), type in “apl 22” (without the quotes).

From this point forward, clicking on Alt and the letter ‘W’ will set the color byte as x’22’ in your SEU source. Congratulations, you’ve set up your first color. At this point, you can click on File->Save, and close the window. The change will take place immediately.

Now, all you have to do is repeat the setup for any other colors you want. Here’s what I have set up, and it’s pretty easy to remember. Just prefix the code you enter in the text box with “apl” (i.e. – apl 22, apl 23, etc.).

First, don’t overdo it and colorize your source with too many variations. Set some standards – and follow them! I do most of my regular comments in White, important ones in Red or Pink. Blue doesn’t stand out too much, so I rarely use it. Yellow and Turquoise have the column separators, so they stretch across the SEU window. They are great for separating sections of code.

Oh, and if you page the SEU window to the left or right you might find the colors disappear. It depends on whether the color byte is “seen” by the 5250 interpreter.

How Do You Use IndexColorModel ( Java )? I have a custom font file* and I need to be able to change it into every color, so creating different colored font files is out of the question. I’ve been trying to change them pixel by pixel, but it was taking too long and it didn’t keep the alpha from the original pixels for some reason.

So I looked up that IndexColorModel would be the way to go, but I’ve been searching but I can’t figure out how it works. I need to change the white pixels to be displayed as the current color. This is my current code:

for ( int i = 0; i < 8; i++ ) {
Â Â Â red[ i ] = ( byte ) color.getRed();
Â Â Â grn[ i ] = ( byte ) color.getGreen();
Â Â Â blu[ i ] = ( byte ) color.getBlue();
}
* not really a font file, just a png file split into 16 x 16 squares that get loaded individually, each one containing it's own character. The characters are white with anti-aliasing on them.
Please help, I'm really trying to make my first game and this is really stopping me from actually being able to carry on with the game.

Does Anyone Know Where I Could Find A Wiring Diagram For My Stereo In My 02 Nissan Sentra For Free? The main plug going into the subwoofer, the wires have been pulled out, and there is no color code on plug to put them back in correctly.

Notes:
NOTE: Some models have an immobilizer system that needs to be bypassed during remote start. *1 The Time Control Unit or the SECU (smart entrance control unit) is to the right of the steering column. *2 On vehicles without power doorlocks use red/white in the drivers kick panel. Vehicles with power doorlocks use red for the drivers door and red/white for the passenger doors, at the Time Control Unit or SECU. *3 On models without the SECU, have to diode isolate the trunk pin wire from the trunk light to avoid falsing problems. *4 Can also use pink/black in pin 12 at the SECU but it is high current negative, and must use a relay. *5 For tach go to any of the coils and use one of the following: black/red, purple, blue/red, or gray/red. Can also use blue/orange at the instrument cluster if vehicle is equipped with a tachometer.

Does Anyone Know Where I Could Find A Wiring Diagram For My Stereo In My 02 Nissan Sentra For Free? The main plug going into the subwoofer, the wires have been pulled out, and there is no color code on plug to put them back in correctly.

Notes:
NOTE: Some models have an immobilizer system that needs to be bypassed during remote start. *1 The Time Control Unit or the SECU (smart entrance control unit) is to the right of the steering column. *2 On vehicles without power doorlocks use red/white in the drivers kick panel. Vehicles with power doorlocks use red for the drivers door and red/white for the passenger doors, at the Time Control Unit or SECU. *3 On models without the SECU, have to diode isolate the trunk pin wire from the trunk light to avoid falsing problems. *4 Can also use pink/black in pin 12 at the SECU but it is high current negative, and must use a relay. *5 For tach go to any of the coils and use one of the following: black/red, purple, blue/red, or gray/red. Can also use blue/orange at the instrument cluster if vehicle is equipped with a tachometer.

There are two wires that were attached to different terminals on the fan motor, and they BOTH broke off? The color coding you gave indicated to me that if you re-hook the wires up correctly to the terminals the fan will run correctly to blow through the radiator. If not, then switch the hook-up.

Cb Mike Wiring Color Codes.? I got a sears road talk 40 i was stupid and didn’t look at the colors before i pulled the wires out of the mike. All i need to know is what does the audio, ground, transmit, and receive colors are!

Simply take the screws out of the back of the mic case and examine the wiring color code, jot it down if you have too.

Pretty easy to trace through PTT switch and see which wires go to the mic capsule and which to the switching.

Also, the mic will likely be connected with the only shielded wire, separately shielded from the rest in many cases, strip back the insulation a bit and look for that.

Typical color code is WHT, SHLD, RED, GRN with WHT being the mic positive, SHLD being gnd and RED and GRN either being just the switch in a 4-wire. But not always. Opening the mic and checking is a good and surefire method

Ford Ranger Radio Wiring? The wiring color codes for a 98 ranger. I cut the stock harness and i need to know which wires go to what speakers, positive/negative, which are the 12v, ignition, and such for a radio, thanks

Cb Mike Wiring Color Codes.? I got a sears road talk 40 i was stupid and didn’t look at the colors before i pulled the wires out of the mike. All i need to know is what does the audio, ground, transmit, and receive colors are!

Simply take the screws out of the back of the mic case and examine the wiring color code, jot it down if you have too.

Pretty easy to trace through PTT switch and see which wires go to the mic capsule and which to the switching.

Also, the mic will likely be connected with the only shielded wire, separately shielded from the rest in many cases, strip back the insulation a bit and look for that.

Typical color code is WHT, SHLD, RED, GRN with WHT being the mic positive, SHLD being gnd and RED and GRN either being just the switch in a 4-wire. But not always. Opening the mic and checking is a good and surefire method

What Are The Wiring Color Code For Toyota Innova? I finnaly found a way to remove and replace my old innova car stereo now how do i wire my new sony stereo? i need color code. pls help coz i lost my car manual. pls help thank you….. or an electronic toyota innova manual will help.

Since the innova is not sold in america i cannot get you that info. but the innova is wirered the same as the sienna so here is the wirring info for it. you did not specify the year so i am giving you the 04 specs. hope this helps.

Cb Mike Wiring Color Codes.? I got a sears road talk 40 i was stupid and didn’t look at the colors before i pulled the wires out of the mike. All i need to know is what does the audio, ground, transmit, and receive colors are!

Simply take the screws out of the back of the mic case and examine the wiring color code, jot it down if you have too.

Pretty easy to trace through PTT switch and see which wires go to the mic capsule and which to the switching.

Also, the mic will likely be connected with the only shielded wire, separately shielded from the rest in many cases, strip back the insulation a bit and look for that.

Typical color code is WHT, SHLD, RED, GRN with WHT being the mic positive, SHLD being gnd and RED and GRN either being just the switch in a 4-wire. But not always. Opening the mic and checking is a good and surefire method

Earn Rewards Taking Surveys!

I earn points taking YouGov surveys, and then I redeem the points for gift cards. Each survey takes about 5 minutes to complete, and some of them are quite interesting. You’ll be surprised how quickly points accumulate! Sign up here and start earning points and gift cards for taking simple 5 minute surveys.