Solved

suspend a output

Posted on 1997-05-21
3
225 Views
Last Modified: 2010-04-16
Is it possible to suspend a output to screen just using
following:

var ch : char;

begin
write('press any key to continue...');
read(ch);
end.

if not, what is the correct way? thx
0
Comment
Question by:ping072497
  • 2
3 Comments
 

Accepted Solution

by:
PFranz earned 50 total points
ID: 1215340
I usually use

var ch:char;

Begin
 write('press any key');
 ch := readkey;
end.
0
 

Author Comment

by:ping072497
ID: 1215341
I tried the above program. It seems doesn't work to me.
I couldn't compile it. I'm using Tubo Pascal 7.0. Is readkey
a function?


0
 

Expert Comment

by:PFranz
ID: 1215342
It is a function from the CRT Unit.
You can use this function also to read a key like ESC (ch=CHR(27)) or one of the F-keys.
 
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
using a list of objects, Delphi 3 611
ShowMessage(listview1.itemappearance.Header.text, Item.text) 9 1,644
Intraweb submit form as a POST request 4 328
Thread safe  opinion 7 150
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question