Euphoria Ticket #402: maybe_any_key doesn't always pause when you double-click on programs like demo/tree.ex

Programs that use maybe_any_key() wont close if run by eui.exe. So, the installer needs to be adjusted so it associates all programs with 'euiw.exe' on versions of Windows earlier than XP or Sever 2003 where as on later versions you can associate .ex with eui.exe if maybe_any_key() makes use of the iscon() function posted on the dev list.

Details

Type: Bug Report Severity: Minor Category: Library Routine
Assigned To: SPringle Status: Fixed Reported Release: rc1
Fixed in SVN #: 4157, 4158 View VCS: 4157, 4158 Milestone: 4.0.0RC2

1. Comment by jimcbrown Nov 17, 2010

XP/2003 and later are somewhat more console/command prompt friendly than earlier OSes (w7 somewhat more so). So the current behavior is fine for them.

Where we need iscon() the most is the earlier OSes. Of course we don't have it there.

2. Comment by SDPringle Nov 17, 2010

On the contrary. We iscon() on Windows XP/2003 and above but not earlier. THe earlier ones we associate everything with euiw.exe.

3. Comment by jeremy Nov 17, 2010

.ex files should be associated with eui for other reasons such as execution on the command line.

A solution was suggested by Derek that would solve this problem for our few demos instead of ruining it for every other .ex file in existence for the minimal benefit of the demos. A simple menu launcher can exist for the demos. It solves the problem and is easier for a new user to use and explore the demos.

4. Comment by jimcbrown Nov 17, 2010

I concur. The ticket is invalid, the solution proposed by Derek is the correct one and is the one that should be implemented.

The one suggested here is wrong, because iscon() is not helpful on XP/above and necessary on anything older but not does not exist there.

5. Comment by SDPringle Nov 17, 2010

We went through this before. The associations the way they are mean that 95 and 98 users will see EUPHORIA as a shabby product. Although the associations will work fine the way they are for new OSes, they should be different for Windows 9x/Me.

6. Comment by jeremy Nov 17, 2010

Windows 95 and 98 are not supported any longer from Microsoft, they are in the vast minority.

7. Comment by jimcbrown Nov 17, 2010

Please explain why Derek's proposed solution is inadequate. As I understand it, there's no reason why his program manager would fail to function correctly on WIndows 98.

8. Comment by jimcbrown Nov 17, 2010

Ok, I've see you've committed your fix, despite strong opposition these changes and a feature freeze. We're now stuck with them, correct or not.

I'm assigning the ticket to Shawn.

9. Comment by ne1uno Nov 17, 2010

detect-script-start-up-from-command-prompt-or-double-click-on-windows

haven't converted this to win api in euphoria but, this would also solve the problem and make the maybe any key act correctly as a nop for most users in the demos.

the demo runner is a good idea in any case, and may even be expected to run multiple demos by some.

10. Comment by jimcbrown Nov 21, 2010

I'm closing this ticket due to inactivity. Shawn should have done so, since it was assigned to him.

Search



Quick Links

User menu

Not signed in.

Misc Menu