<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 1 March 2017 at 04:48, James Paige <span dir="ltr"><<a href="mailto:Bob@hamsterrepublic.com" target="_blank">Bob@hamsterrepublic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Feb 28, 2017 at 7:15 AM,  <span dir="ltr"><<a href="mailto:subversion@hamsterrepublic.com" target="_blank">subversion@hamsterrepublic.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">teeemcee<br>
2017-02-28 07:15:10 -0800 (Tue, 28 Feb 2017)<br>
759<br>
Add "Test Game with GDB" option<br>
<br>
Access either from spam menu, or hold down Shift when selecting Test Game<br>
(holding Shift works both in the main menu and F9 menu)<br></blockquote><div><br></div></span><div>Nifty!<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Works on Linux and Windows, but probably not on OSX, because it requires<br>
xterm. Maybe if you were to install X11 on OSX<br></blockquote><div><br></div></span><div>You know, we could probably replace the xterm specific stuff with some code that checks for various common terminal programs, and launches the first one it finds.<br><br></div><div>On Linux it could search for xterm, gnome-terminal, xfce4-terminal, kterm and of course I would have to look up the correct syntax for passing commands to each.<br></div></div></div></div></blockquote><div><br></div><div>Yes, and I prefer any of those to xterm anyway, but it seemed like some bother.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>On Mac it looks like we can do something like:<br><br></div><div>   open -b com.apple.terminal ./command_to_run.sh<br></div></div></div></div></blockquote><div><br></div><div>Huh, I haven't seen the -b argument to 'open' before. If we can avoid using AppleScript to invoke a terminal that would be great! The big problem with the way we currently invoke a terminal is that it doesn't return stdout, stderr, the exitcode, or even tell if the terminal could be invoked, let alone the script.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Note the following quirks:<br>
-gdb will break as soon as the channel to Custom has been opened<br>
 (while processing commandline options), which is before setmodex,<br>
 so you need to 'c'ontinue to see the window<br>
-on Unix, Ctrl-C in Custom's terminal will immediately kill Game as<br>
 well because it's sent to the whole process group, instead of<br>
 gdb intercepting it, which is quite annoying<br>
-on Windows, Ctrl-C does nothing (whether using this feature or just<br>
 running gdb normally)<br>
---<br>
U   wip/custom.bas<br>
U   wip/<a href="http://customsubs.bi" rel="noreferrer" target="_blank">customsubs.bi</a><br>
U   wip/customsubs.rbas<br>
U   wip/game.bas<br>
U   wip/yetmore2.bas<br>
______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org" target="_blank">ohrrpgce@lists.motherhamster.o<wbr>rg</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.org<wbr>/listinfo.cgi/ohrrpgce-motherh<wbr>amster.org</a><br>
</blockquote></span></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Ohrrpgce mailing list<br>
<a href="mailto:ohrrpgce@lists.motherhamster.org">ohrrpgce@lists.motherhamster.<wbr>org</a><br>
<a href="http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org" rel="noreferrer" target="_blank">http://lists.motherhamster.<wbr>org/listinfo.cgi/ohrrpgce-<wbr>motherhamster.org</a><br>
<br></blockquote></div><br></div></div>