Software Archive
Read-only legacy content
17061 Discussions

cursor movement with arrow keys, page up/down keys

hemlock
Beginner
408 Views
I'm still plugging away at an old F77 program that relies on arrow keys and page up/down keys to move around in the console window. However, the console window of Windows 2000 does not seem to recognize these keys. Instead, other letters show up instead of actually moving the cursor. So when I need to press page down, the system displays capital q (Q) instead. Can I still use these keys in Visual Fortran programs? Is there something I need to set up in Windows or on my PC to get these keys to function properly?

Thank you very much.
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
408 Views
Basically, you can't do it. Microsoft keeps on discouraging using any "advanced" user interface in console applications (colors, cursor movement, etc.) and the behaviour you get is by design. You could use, say, a multi-line Edit control or Rich Edit control in a dialog, though there would be a lot of work involved to get it work as it worked in DOS.

Jugoslav
0 Kudos
Reply