Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!rochester!bullwinkle!batcomputer!hsgj From: hsgj@batcomputer.TN.CORNELL.EDU (Dan Green) Newsgroups: net.micro.amiga Subject: Requesting a filename Message-ID: <419@batcomputer.TN.CORNELL.EDU> Date: Mon, 9-Jun-86 17:24:26 EDT Article-I.D.: batcompu.419 Posted: Mon Jun 9 17:24:26 1986 Date-Received: Thu, 12-Jun-86 01:11:33 EDT Organization: Theory Center, Cornell U., Ithaca NY Lines: 20 Keywords: Requesters, Filenames I would like to have the user enter a filename from my C program. I have been looking at Requesters, but it appears that they are only used for yes/no input. The Requesters structure seems to just have pointers to positive and negative text, and the Request() and AutoRequest() look like they just return a true/false depending on whether the user's response is DoIt or Cancel. Please, please correct me if I am wrong, but that's the way it looks to me. So the only way I can think of requesting a filename is to generate a window that is one text line high, and attach a console to it in raw mode. Then I would just watch the input of the usre, and when I see a CarriageReturn then I would have the filename, and could close the window. This seems like a lot of work, especially since I would probably have to do my own backspace and ^X processing. So, is theere a function that I am missing that puts up a standard get_file_name request? If not, is the way I am thinking about doing it the only/best way to go? Any responses here would be helpful. -- Dan Green ARPA: hsgj@vax2.ccs.cornell.edu ~~~~~~~~~ BITNET: hsgj@cornella UUCP: {decvax,ihnp4,allegra}!cornell!batcomputer!hsgj