Coastal & Marine Geology InfoBank

Home FACS Activities Atlas Geology School Related Sites More

USGS InfoBank program -- getkey

Skip navigational links
Loading
InfoBank Programs: by Name   by Topic  
Expanded Description
Topic Description
Name
getkey
Synopsis
/infobank/programs/share/getkey.for
Description
  Subroutine to return an individual keystroke without the user 

  pressing <C
       
PROCESS
  This subroutine is useful for executing commands

  in an interactive graphics program, where alphanumerics would
  foul up the graphics display if keystrokes were displayed. 
  Keystrokes are not echoed on the terminal.
    
USAGE
  "a" = argument, "r" = referenced, "s" = set

  call getkey                           (with the following arguments)
         KeyCharacter                [variable char*1 s]
         Key                         [variable int*4 r]
  Input:
   none
  Output:
    KeyCharacter - The character of the key the user pressed. 
    Key          - The integer ASCII value of the key
    
SUBROUTINES
  getcey      (C equivalent of GETKEY)

    
FUNCTIONS
  char                         (FORTRAN intrinsic function)  

    
DISCLAIMER
  Although this program has been used by the U.S. Geological Survey,

  no warranty, expressed or implied, is made by the Survey as to the
  accuracy and functioning of the program and related program
  material nor shall the fact of distribution constitute any such
  warranty, and no responsibility is assured by the Survey in
  connection therewith.
    
AUTHOR
  Clint Steele   11/18/87

  Jean Riordan   2/17/88  Modified for DRS$SHARE cleanup & UNIX compat.
  Clint Steele   12/4/95   Removed VMS references.
    
Reads
Writes
Opens
Calls
      call getc (Key)

Skip footer navigational links

Coastal and Marine Science Centers:  Pacific   St. Petersburg   Woods Hole  
InfoBank   Coastal and Marine Geology Program   Geologic Information   Ask-A-Geologist   USGS Disclaimer  


Accessibility FOIA Privacy Policies and Notices

Take Pride in America logo USA.gov logo U.S. Department of the Interior | U.S. Geological Survey
URL: http://walrus.wr.usgs.gov/infobank/programs/share/getkey.doc.html
Page Contact Information: InfoBank staff
Page Last Modified: Mon Sep 16 03:36:53 PDT 2013  (chd)