From: j DOT aldrich6 AT genie DOT com Message-Id: <199606140249.AA242020550@relay1.geis.com> Date: Fri, 14 Jun 96 02:27:00 UTC 0000 To: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Subject: Re: Put text at (x,y) - how? Reply to message 5274802 from CGO AT DOC DOT NTU DOT A on 06/13/96 5:35AM > Can anyone tell me how I can specify to put text at certain >co-ordinates on a screen? Borland has a nice gotoxy command, >so is there an equivalent in djgpp? You could simply try 'gotoxy()'. :) It exists within DJGPP as part of the functions. Just make sure that when you print to the screen you use the conio print functions, like cputs() and cprintf(). You can look them all up in the docs. The reason you want to use those instead of regular printf(), etc, is because the conio functions all interact with the screen directly, while the stdio functions work through DOS using line buffering. Very strange results can occur if you mix them up. > Also, how could I use Info to find this out for myself? I'd >like to see what other text display handling commands there are. There are several ways to do this. The easiest way is as follows: Start info by typing 'info'. Press TAB until you get to 'libc'. Press Enter to access the libc info file. TAB down to 'Functional Categories' and press Enter TAB down to 'conio functions' and press Enter You will now see a list of all the direct screen i/o functions that are in DJGPP's standard libraries. Select the one you want to look at and press Enter. You can follow cross-references within the node you are in by TABbing to them, or you can use 'l' to return to the list of conio functions and pick another one to examine. The other way to find a function you are interested in is by invoking info on the command line. Simply specify the tree of nodes you want to run down, like so: info libc alpha gotoxy You can abbreviate the names of nodes. If you want to go thru the categories, you can use: info libc func conio gotoxy These both go to the same node. One slightly annoying thing about info is that pressing 'u' (to go "up" a node within a function description will take you back to the alpha- betical list instead of the category list, regardless of which you came there from. There's no way around this, except by using 'l' to trace back through the nodes you most recently visited. In general, the best way to use info (or any other program) is to just play around with it to see how it works. I started out with no idea how to use it, but now I am an expert in moving around. I've even changed the setting of the print command so that it prints nodes to a disk file instead of to the printer. :) If you are really stuck, just press 'h' at any time to run through info's brief (but helpful) online tutorial. Hope this helps! John