Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!hsdndev!cmcl2!adm!news From: 209507097@ucis.vill.edu (MCREE, JAMES F) Newsgroups: comp.lang.pascal Subject: Extracting from a unit (or CRT vs. ANSI) Message-ID: <26447@adm.brl.mil> Date: 3 Apr 91 21:55:37 GMT Sender: news@adm.brl.mil Lines: 18 I need to use the "KeyPressed" and "ReadKey" functions in CRT in Turbo 5.0, but can't use the CRT unit because it will cause the program to ignore the meaning of my ANSI codes. There are three general ways that I can think of for getting this to work. 1. Extract these two functions directly out of the CRT unit and compile them separately or include the code directly in my program. 2. Write new code or reverse-engineered code to perform these functions. 3. Tell CRT to ignore ANSI escpape sequences. However, there is a problem. At the moment, I don't know how to do any of these. Any ideas out there? Feel free to add on 4,5,... ideas. Thanks for any help you can provide, Jim.