Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!usc!rutgers!cmcl2!lanl!cochiti.lanl.gov!jlg From: jlg@cochiti.lanl.gov (Jim Giles) Newsgroups: comp.lang.c Subject: Re: to "OR" or not to "OR" Message-ID: <24577@lanl.gov> Date: 28 May 91 22:59:23 GMT References: <1991May28.191122.15749@ncsu.edu> Sender: news@lanl.gov Organization: Los Alamos National Laboratory Lines: 21 In article <1991May28.191122.15749@ncsu.edu>, tmjones@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