Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Two values in one variable

Name: Anonymous 2010-01-16 18:52

Let's say you have two small values that will never get past 10, and you use the first four bits of a char for the first var and the last bits for the second var. Do people do that?

Name: Anonymous 2010-01-16 19:59

>>10
I even remember that the high bit of the background was the blinking attribute, so you couldn't have bright background colors.

Or could you? Maybe there was a special switch which disabled blinking, I think I saw some program that did it.

Also I remember programs who used custom characters to simulate widgets such as radio buttons. Some even had mouse cursors in text mode with one pixel granularity; they did this creating 4 custom characters which were the ones that fell under the cursor at any given time (the cursor had the size of one character, 9x16 pixels I think for 80x25) with the corresponding parts of the cursor overimposed. If you moved it over a color difference you could see the underlying boundaries.

Awesome stuff.

Of course this falls on the "huge array" case, still pointless to do for single variables.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List