Category : Miscellaneous Language Source Code
Archive   : HF0258.ZIP
Filename : AINTER.FOR

 
Output of file : AINTER.FOR contained in archive : HF0258.ZIP
C********* The GETCH function (A) ********
C The interface statement, to be added to the FORTRAN
C run-time library routines, currently prints the ASCII
C code of the returned character

interface to integer*2 function Getchasm()
end

character*1 FUNCTION Getch()
integer*2 Getchasm
i=getchasm()

if (i.gt.256) then
print*,'entered a non-printable keystroke'

c The value of i can be used to determine which
c keystroke was entered

Getch=CHAR(i/256)
return
endif

Getch=CHAR(i)

END

C******************************************


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : HF0258.ZIP
Filename : AINTER.FOR

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/