Terminal closes when passing looping ruby code to -e #753

Open
opened 2022-08-20 19:32:13 +02:00 by tim-ufer · 0 comments
tim-ufer commented 2022-08-20 19:32:13 +02:00 (Migrated from github.com)

I'm trying to use this terminal with some ASCII art as a screensaver. The art I chose is the Qlobe by Yusuke Endoh (code here) and I want to open cool-retro-term with a keyboard shortcut and pass the relevant commands to launch the ASCII art to it.

I learned in this related issue how to pass multiple commands and keep the terminal open, but when I pass the ruby command it closes immediately anyway. Does someone know what I'm doing wrong or whether this is even possible?
Fyi, running the ruby command 'normally' in cool-retro-term works fine, the issue is with passing it via -e.

This is the command I'm trying to use for the shortcut: cool-retro-term --fullscreen -e /bin/sh -c 'cd ~/Downloads/qlobe-master/src/;clear; for ((;;)); do for i in {1..360}; do tput cup 0 0; ruby qlobe.rb $i; sleep 0.1; done; done;read x'

I'm trying to use this terminal with some ASCII art as a screensaver. The art I chose is the Qlobe by Yusuke Endoh ([code here](https://github.com/knoxknox/qlobe)) and I want to open cool-retro-term with a keyboard shortcut and pass the relevant commands to launch the ASCII art to it. I learned in [this related issue](https://github.com/Swordfish90/cool-retro-term/issues/728) how to pass multiple commands and keep the terminal open, but when I pass the ruby command it closes immediately anyway. Does someone know what I'm doing wrong or whether this is even possible? Fyi, running the ruby command 'normally' in cool-retro-term works fine, the issue is with passing it via `-e`. This is the command I'm trying to use for the shortcut: `cool-retro-term --fullscreen -e /bin/sh -c 'cd ~/Downloads/qlobe-master/src/;clear; for ((;;)); do for i in {1..360}; do tput cup 0 0; ruby qlobe.rb $i; sleep 0.1; done; done;read x'`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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