Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Input cursor stay the same line?

paramont
Beginner
730 Views
I want to let the cursor stay the same line when I write a sentence on the screen, and wait for the input. However, in CVF 5D, it looks impossible.

Anyway, what I want to do is like:

Write(*,*) 'Please give a file name: '
Read(*,*) File_Name

On the screen, it should look like this:

Please give a file name: _

The last "_" represents the cursor.

right now the cursor always goes to the beginning of next line.

Thanks!
0 Kudos
2 Replies
tmcole
Beginner
730 Views
You will have to use a formatted write with the edit descriptor, e.g.:

write (*,'(a)') 'Please give a filename: '
0 Kudos
paramont
Beginner
730 Views
Thanks!
0 Kudos
Reply