Archived
1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
cli-old/lib/widgets/logo.rb

31 lines
671 B
Ruby
Raw Normal View History

2017-07-22 09:44:43 -04:00
# frozen_string_literal: true
module Widgets
class Logo < Curses::React::Component
LOGO = [
' _____ ___ _ _ ___ _ _ ',
' |_ _/ _ \ \/ / _ \| \ | | ',
' | || | | \ / | | | \| | ',
' | || |_| / \ |_| | |\ | ',
' |_| \___/_/\_\___/|_| \_| ',
' ',
' Version 0.0.0 ',
' ',
].freeze
2017-07-22 09:44:43 -04:00
WIDTH = LOGO.first.length
HEIGHT = LOGO.length
2017-07-22 09:44:43 -04:00
2017-07-25 10:48:37 -04:00
private
def render
Style.default.logo window do
LOGO.each_with_index do |s, index|
setpos 0, index
addstr s
2017-07-22 09:44:43 -04:00
end
end
end
end
end