From: George Foot Newsgroups: comp.os.msdos.djgpp Subject: Re: I cannot enter the Logical OR operator '||' on my keyboard!! HELP!!!! Date: 6 Nov 1997 06:04:52 GMT Organization: Oxford University, England Lines: 30 Message-ID: <63rmm4$kd4$2@news.ox.ac.uk> References: <63qd41$dm7$1 AT plug DOT news DOT pipex DOT net> <01bcea44$e04623a0$be9c989e AT default> NNTP-Posting-Host: sable.ox.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 05 Nov 1997 23:46:09 GMT in comp.os.msdos.djgpp ianc wrote: : Dunno if this will help but my PC does exactly the same trick full stop : with DOS boxes... It seems that for some reason the '|' (OR) and '¦' (ALT : GR+`) keys have been swapped. In my case pressing the ALT GR+` key gets me : the OR character OK. And yes, it is annoying! :-/ To fix this, change your code page in CONFIG.SYS and AUTOEXEC.BAT; IIRC you need to make sure DISPLAY.SYS is being loaded in CONFIG.SYS, and add to AUTOEXEC.BAT something like: mode con cp prep = ((437),ega.cpi) mode con cp sel = 437 Check the help system for the correct syntax for these commands; I can't at present I'm afraid. I also can't remember whether the number should be 437 or 850; if one doesn't work, try the other. If you prepare both codepages, you can use the keyb command to switch between them; I think the codepage goes in as the second parameter, e.g.: keyb uk,437,c:\...\keyboard.sys Again, check the DOS help syste (you *do* still have your old DOS version, right?). -- Regards, george DOT foot AT merton DOT oxford DOT ac DOT uk