Terminal closes when passing looping ruby code to -e #753
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'