Geany

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
xia1498
Posts: 15
Joined: Sun 31 Oct 2010, 20:24

Geany

#1 Post 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

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#2 Post by noryb009 »

What programming language are you using?

xia1498
Posts: 15
Joined: Sun 31 Oct 2010, 20:24

#3 Post by xia1498 »

Just working on learning C++.

noryb009
Posts: 634
Joined: Sat 20 Mar 2010, 22:28

#4 Post by noryb009 »

Before the end of main (before the return), try adding:

Code: Select all

int whatever;
cin >> whatever;

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#5 Post 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.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#6 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#7 Post 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

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#8 Post 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.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#9 Post 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

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#10 Post 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.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#11 Post 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

Post Reply