Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

F77 keyboard, mouse and screen handling 1

Status
Not open for further replies.

palmenere

Technical User
Oct 22, 2007
5
TR
Hi to everybody! My problem is in writing a code tat allows me to manage same technical data on the screen; I need to build up for myself a GUI as old BASIC and PASCAL interfaces; you know: tab key move, some small drop down menu, RGB colors... really very simple and very old style GUIs.
All my F77 progs they run from DOS prompt and to display results I have to store them in text files and then plot them using other programs: i.e. grapher or matlab.

Can you help me? Do you have any suggestions? I don't want to build up a complex windows style GUI, I need old type BASIC interfaces and that's all.

I am looking for these tools since a lot of time but no results till now.

Thank you in advance.
Palmenere
 
Try the Silverfrost/Salford compiler. It will do simple as well as fairly complex Windows GUIs.
 
Thank you. I found this compiler but I need really more simple tools. I already use g77 with no any kind of problem. My target is to build up for me a user interface like "edit" command in dos or linuxconf in debian,redhat, suse... really I do not need console or windows like application.

Hope to find some other tools more simple, or libraries or any example codes written in F77.

Thank you again.
 
You mean you need some cursor addressing routines like the ones in curses. There is a problem with that on g77 if it is built with the mingw compiler. If you print any of the escape sequences, they won't come out. You need a version that is built with cygwin.

I have the same problem with g95. Have a look at


It might help
 
One of the problems that you'll find if you're using Windows 2000 or XP is that the line drawing characters do not display properly. This is a hangover from NT. There is only one complete set. You need to invoke "graftabl 850" to see the graphics characters.
 
If you're running windows, there are a few mods you need to make. These are highlighted in
The problem is they only work in command.com, not cmd.exe so you are restricted to 16-bit programs. I'm still looking for a way of running 32 bit programs from command.com or getting ansi.sys to work on cmd.exe
 
It works!

Another problem now is also in catching and recognizing which key was pressed on the keyboard.

Is possible to build up a string containing all escapes commands and then using a system call to generate the interface. Now we have to make it usable: to catch user's (me) input.

Bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top