Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!edcastle!hwcs!scott From: scott@cs.hw.ac.uk (Scott Telford) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: ms_sh-1.6.4 question (and another one: sh/Win3.0/XMS) Message-ID: <2053@odin.cs.hw.ac.uk> Date: 25 Jan 91 13:22:26 GMT References: <2034@odin.cs.hw.ac.uk> Sender: news@cs.hw.ac.uk Reply-To: scott@cs.hw.ac.uk (Scott Telford) Organization: Dept of Computer Science, Heriot-Watt University, UK. Lines: 38 In article thewalt@canuck.ce.berkeley.edu (C. Thewalt) writes: >In article <2034@odin.cs.hw.ac.uk> scott@cs.hw.ac.uk (Scott Telford) writes: >> I've found this problem too. Some bit of DOS (probably deep down in the >> BIOS) intercepts ^S, ^P & ^N which is a bit of a pain for us Emacs/tcsh >> addicts who keep turning the printer echo on when we hit ^P or ^N. Has >> anybody found a fix for this? It can't be completely impossible since >> the MKS Toolkit Korn Shell doesn't have this problem. > >Hmm. The ^S and ^N work for me (bound to ScanForeward and next >respectively) but the ^P is making my life miserable. Umm... yes. I'm not sure where I got ^N from. I think I read it in an old Dell DOS manual. Anyway, DOS *does* eat ^S (freeze screen) and ^P (toggle printer). Pressing "^S ^S", will generate a ^S though. Looking at the source, sh seems to use the Microsoft library function getch() to read the keyboard, which according to the sh manual, uses DOS function 8h. I think it could be fixed by replacing this with a BIOS call, or perhaps using the DOS ioctl function to set RAW mode on the CON: device beforehand. And now for another question... Has anybody got sh 1.6.4 to run using XMS to swap to under Windows 3.0? I've got 1Mb of extended, the HIMEM.SYS driver supplied with Win3 and the line "swap extend" (*not* "extent" as in the manual) in my /etc/profile.sh. This works OK outside Windows, but when run from Windows I get the message "PANIC: Error reloading from swap-file" (or words to that effect) whenever sh tries to swap back in after executing anything. I've tried fiddling with the PIF to no avail. Strange as it sounds, I find the combination of Windows + Bourne Shell very comfortable.... _____________________________________________________________________________ | Scott Telford, Dept of Computer Science, scott@cs.hw.ac.uk | | Heriot-Watt University, Edinburgh, UK. scott%hwcs@ukc.uucp | |_____ "Expect the unexpected." (The Hitch-Hiker's Guide to the Galaxy) ______|