Commit a42ba51d authored by Jack Jansen's avatar Jack Jansen

Use MacOS.OutputSeen() on menuselections: it treats a menu selection in the...

Use MacOS.OutputSeen() on menuselections: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before). This makes the CGI tools work nicely for Quit.
parent 5a11362b
......@@ -81,6 +81,7 @@ class MiniApplication:
if c == '.':
raise KeyboardInterrupt, "Command-period"
if c == 'q':
MacOS.OutputSeen()
self.quitting = 1
return
elif what == mouseDown:
......@@ -96,6 +97,7 @@ class MiniApplication:
name = self.applemenu.GetMenuItemText(item)
Menu.OpenDeskAcc(name)
elif id == self.quitid and item == 1:
MacOS.OutputSeen()
self.quitting = 1
Menu.HiliteMenu(0)
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment