piotrmurach/tty-font

View on GitHub
examples/starwars.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'pastel'
require_relative '../lib/tty-font'

pastel = Pastel.new
font = TTY::Font.new(:starwars)

puts pastel.red(font.write('starwars'))

puts font.write("ABCDEFGHIJKLMN")
puts font.write("OPQRSTUVWXYZ")

puts font.write("abcdefghijklmn")
puts font.write("opqrstuvwxyz")

puts font.write("0123456789")

puts font.write("!#\$%^&*()-_+=")

puts font.write("\"',.:;><?@][\\/}{|")