This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi All, What I'm "trying" to accomplish will need some explanation, hopefully someone has some helpful info on this. I have a program that will spit out content to the terminal (TCL) on Windows or Unix. Each line varies in length so one line in the program may wrap to 10 in DOS or some other number in Unix. Is there a way I can tell DOS or the Shell to display a page full of content, break, ask the user a question (i.e. wish to continue, wish to accept agreement, etc..,), and based on the answer either continue, quit out of the displaying of the text, or just quit altogether? It's a perl script that doing this but I'm hoping someone may have had a similar issue with other languages:
Read in a text document that has 6 paragraphs. When perl spits this out in DOS it's about 100 lines (wrapping and so forth). I want to say "Press Y to contiue displaying text or N to stop display". Based on the response I want to do the obvious. Since the perl script just prints the entire file's contents in one shot I'm a bit unsure if I can accomplish this or not. Any help would be greatly appreciated. Thanks.