Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
21.78k stars 837 forks source link

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

Open tim-ufer opened 1 year ago

tim-ufer commented 1 year ago

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'