Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!brutus.cs.uiuc.edu!uakari.primate.wisc.edu!aplcen!haven!udel!princeton!phoenix!pucc!HONGHE From: HONGHE@pucc.Princeton.EDU (Hong He) Newsgroups: comp.lang.fortran Subject: Re: Getting a single keystroke Message-ID: <10383@pucc.Princeton.EDU> Date: 4 Jan 90 19:36:26 GMT References: <#!G4|_@rpi.edu> <1990Jan1.194328.24966@cs.dal.ca> Reply-To: HONGHE@pucc.Princeton.EDU Organization: Princeton University, NJ Lines: 25 Disclaimer: Author bears full responsibility for contents of this article In article <1990Jan1.194328.24966@cs.dal.ca>, silvert@cs.dal.ca (Bill Silvert) writes: >In article <#!G4|_@rpi.edu> jefu@pawl.rpi.edu (Jeffrey Putnam) writes: >> >>Now I need a simple answer (I hope the answer will not be as simple as "no"), >>Is it possible to have MS Fortran detect a single (non ) keypress, and >>return a single character? Ideally I would like a couple functions, say >>kbdhit() and getsinglechar(). > >I cannot find a way to do this in MS or Lahey Fortran, but I have >assembler code that does the job. The Spindrift Library, available in MS and Lahey versions, has the functions you need, as well as other keyboard and screen manipulation functions. The address is : Spindrift Laboratories 116 S. Harvard Ave. Arlington Heights, IL 60005 (312) 255-6909 I've used the library mostly in its Lahey version, and mostly for its keyboard functions. Hope this helps. Barbara Vaughan BVAUGHAN@PUCC.princeton.edu