Page 1 of 1

Geany

Posted: Sun 31 Oct 2010, 20:31
by xia1498
Whenever i attempt to execute a program in Geany the terminal screen flashes temporarily. I am no expert by any means so please keep it simple if you have any ideas.
Thanks

Posted: Sun 31 Oct 2010, 22:25
by noryb009
What programming language are you using?

Posted: Sun 31 Oct 2010, 22:39
by xia1498
Just working on learning C++.

Posted: Sun 31 Oct 2010, 23:32
by noryb009
Before the end of main (before the return), try adding:

Code: Select all

int whatever;
cin >> whatever;

Posted: Mon 01 Nov 2010, 00:20
by muggins
I wonder whether it's related to geany using xterm as default program for compilation? If the puppyversion you're using has urxvt, as the console app, you could try symlinking /usr/bin/urxvt to /usr/bin/xterm & see if that makes any difference.

Posted: Mon 01 Nov 2010, 08:10
by technosaurus
At some point geany failed to generate the executable bit on the wrapper script it creates, but thats ok. You can do the equivalent of running a non-executable script (sh <script>) by modifying the preferences:

edit
preferences
tools
terminal
/usr/bin/rxvt -e sh -c
OK

Posted: Mon 01 Nov 2010, 23:22
by seaside
When using bash, the following under terminal peferences works well because the output stays visible.
/usr/X11R7/bin/xterm -e bash -c
Cheers,
s

Posted: Tue 02 Nov 2010, 02:25
by technosaurus
seaside wrote:/usr/X11R7/bin/xterm -e bash -c
That does exactly what I posted but would be incompatible with some versions of Puppy since /usr/X11R7/bin/xterm may not exist (wary, quirky, lucid) and bash may not exist (pupngo & others may use busybox ash or hush) rxvt is more common in Puppy and sh should always exist and usually points to bash as the default shell if it exists anyways.

Posted: Tue 02 Nov 2010, 15:18
by seaside
technosaurus wrote:
seaside wrote:/usr/X11R7/bin/xterm -e bash -c
incompatible with some versions of Puppy since /usr/X11R7/bin/xterm may not exist (wary, quirky, lucid) and bash may not exist (pupngo & others may use busybox ash or hush) rxvt is more common in Puppy and sh should always exist and usually points to bash as the default shell if it exists anyways.
technosaurus,

Good point and perhaps this would be more "generic"
xterm -e sh -c
(I think most Puppys have xterm in the path)

I prefer to use xterm because rxvt doesn't appear to hold the terminal window open for error inspection.

Regards,
s

Posted: Wed 03 Nov 2010, 21:18
by technosaurus
rxvt should stay open (it did for me at least) - but this fix should probably be added to the geany config file in the woof templates, since it keeps popping back up.

Posted: Thu 04 Nov 2010, 02:21
by seaside
technosaurus,

I guess it's version related - in puppy510 it holds (rxvt is a link to urxvt there) and pup431 it is actually rxvt and doesn't hold.

Regards,
s