to "OR" or not to "OR"

Jim Giles jlg at cochiti.lanl.gov
Wed May 29 08:59:23 AEST 1991


In article <1991May28.191122.15749 at ncsu.edu>, tmjones at eos.ncsu.edu (TOMMIE MILES JONES) writes:
|> Ok folks this is a real stupid problem.
|> I have a (don't laugh, I'm a poor broke college student) tandy 1000sx
|> it is IBM compatible (suprise!) and run quick C ver 2.5 academic ver.
|> (only $45 I told you I was cheap)
|> this peice of sh-- will not allow me to write the OR symbol "|"
|> it is on key 4 on the numeric key pad.  I tried all different combinations
|> of numlock and shift.  it will just move the cursor or highlight the text.
|> I'm tired of Demorgan's law (a | b= !(a & b)) isnt there a way to get around 
|> I read somewhere that C has taken into consideration that some machines do
|> not have all the funky symbols and there are ways to get around.

The problem is with your editor.  The only way it could be _failing_ to
get the vertical bar (and the circumflex "^", and whatever else is on the
Tandy number pad) is if it is bypassing the normal terminal input and
reading the key codes itself.  Try using the arrow keys (shifted and
unshifted), sometimes those are interpreted as the missing keys (vterm
does that on Tandys).  If all else fails, write a code to convert @ to
| and write all your other codes using @.

J. Giles



More information about the Comp.lang.c mailing list