Author Topic: Set Program's Behaviour window  (Read 5713 times)

Offline JYM

  • Single posting newcomer
  • *
  • Posts: 4
Set Program's Behaviour window
« on: November 09, 2011, 05:21:42 pm »
At least under ubuntu 10.10, CB 10.05 window to set up arguments to be passed to your compiled projects is unreadable.
Unfortunately, I could not find a way without recompiling. It seems that there is a problem with multilines text controls.
A work around is to modify the select_target.xrc file in /src/sdk/resources, suppressing the folowing line
<style>wxTE_MULTILINE</style>
which is below <object class="wxTextCtrl" name="txtParams">
recompile...
You will then get a single line, visible and usable...
By the way, do not transmit your parameters using options defined with a "-" prefix: they would be interpreted by your terminal as undefined options.. -- works well with xterm.
Hope this may be usefull!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Set Program's Behaviour window
« Reply #1 on: November 09, 2011, 07:26:40 pm »
I've just fixed it yesterday. It will be in the next nightly or you could apply the patch yourself (I've done so:) ).
Just replace the file in the /usr/share/codeblocks/manager_resources.zip and it the problem will be gone.

By the way, do not transmit your parameters using options defined with a "-" prefix: they would be interpreted by your terminal as undefined options.. -- works well with xterm.
What? Can you give better explanation of the problem?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Set Program's Behaviour window
« Reply #2 on: November 09, 2011, 10:07:22 pm »
By the way, do not transmit your parameters using options defined with a "-" prefix: they would be interpreted by your terminal as undefined options.. -- works well with xterm.

I do this every day, and I have used different terminals on lxde, xfce, kde and gnome, but never had any problems with parameters, that allow a single "-".

Offline JYM

  • Single posting newcomer
  • *
  • Posts: 4
Re: Set Program's Behaviour window
« Reply #3 on: November 10, 2011, 07:54:57 am »
"-" story:
If you pass arguments with "-" in the argument window of code blocks, then it is taken as an argument of the terminal command issued by codeblocks. xterm, at least, expects that the last argument is -e folowed by the code to execute. Of course, outside code blocks, no problem...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Set Program's Behaviour window
« Reply #4 on: November 10, 2011, 10:23:46 am »
Hm, you've set your terminal command wrong.
Goto the Settingws->Environment->General and there is a setting for the command used to launch the terminal.
Mine is "xterm -T $TITLE -e" and it works perfectly.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline JYM

  • Single posting newcomer
  • *
  • Posts: 4
Re: Set Program's Behaviour window
« Reply #5 on: November 10, 2011, 03:18:30 pm »
Mine is the same (without the double quotes) and run results in a crash if I use -whatever options.... By the way if I paste the content of what follows -e on execution in a terminal, I get the help content on the valid options.
JY

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Set Program's Behaviour window
« Reply #6 on: November 10, 2011, 10:49:37 pm »
Does "xterm -e sleep 100000" works?
If it doesn't your xterm is broken! :)
Then check the options and see which is the correct switch you have to use.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]