It should be possible to pass command as argument when cool-retro-term is launched #172

Open
opened 2014-11-08 14:12:38 +01:00 by gerritsangel · 2 comments
gerritsangel commented 2014-11-08 14:12:38 +01:00 (Migrated from github.com)

I tried to use cool-retro-term as a terminal in Code::Blocks. When I use Konsole, the terminal stays open afterwards and says

Process returned 0 (0x0)   execution time : 2.285 s
Press ENTER to continue.

But cool-retro-term (with cool-retro-term --program) closes immediately. Could you maybe change it so that it stays open (or add an option)? :)

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

I tried to use cool-retro-term as a terminal in Code::Blocks. When I use Konsole, the terminal stays open afterwards and says ``` Process returned 0 (0x0) execution time : 2.285 s Press ENTER to continue. ``` But cool-retro-term (with cool-retro-term --program) closes immediately. Could you maybe change it so that it stays open (or add an option)? :) ## <bountysource-plugin> Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/5857430-it-should-be-possible-to-pass-command-as-argument-when-cool-retro-term-is-launched?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github). </bountysource-plugin>
gerritsangel commented 2014-11-08 15:20:49 +01:00 (Migrated from github.com)

Ok, it seems that Code::Blocks uses an application (cb_console_runner) which displays the above message and keeps the window open, so it is not a missing function of cool-retro-term in itself.

Instead, cool-retro-term somehow does not work with cb_console_runner. It does not even start cb_console_runner if the program for example ask for some input.

Ok, it seems that Code::Blocks uses an application (cb_console_runner) which displays the above message and keeps the window open, so it is not a missing function of cool-retro-term in itself. Instead, cool-retro-term somehow does not work with cb_console_runner. It does not even start cb_console_runner if the program for example ask for some input.
Swordfish90 commented 2014-11-09 02:22:22 +01:00 (Migrated from github.com)

Hi @TheHellstorm , preventing the terminal from closing when the session dies won't solve your problem. The issue here is that right now the --program flag expects a process and not a command. So you can run cool-retro-term top without any arguments without any shell.

The idea might be to introduce another flag like --cmd that instead process a command: cool-retro-term --cmd sh -c "cb_console_runner whathever". Right now I have other priorities such as polishing the new plugin, but I will take a look at this in the future since it sounds really useful.

Hi @TheHellstorm , preventing the terminal from closing when the session dies won't solve your problem. The issue here is that right now the --program flag expects a process and not a command. So you can run cool-retro-term top without any arguments without any shell. The idea might be to introduce another flag like --cmd that instead process a command: cool-retro-term --cmd sh -c "cb_console_runner whathever". Right now I have other priorities such as polishing the new plugin, but I will take a look at this in the future since it sounds really useful.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#172
No description provided.