ruby.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
If you are interested in the Ruby programming language, come join us! Tell us about yourself when signing up. If you just want to join Mastodon, another server will be a better place for you.

Administered by:

Server stats:

1.1K
active users

Richard Schneeman

Do you have tips for driving IRB as a background process through STDIN and writing outputs to a file?

I basically want to automate some tutorials that include showing how things should look in the irb REPL including the prompts and interface. But as soon as I run it without a TTY the styles all change and I’m not sure if there’s a combination of flags/settings to get them looking the same again.

Basically trying to get these outputs to match closer: gist.github.com/schneems/88223

Gistirb.mdGitHub Gist: instantly share code, notes, and snippets.