ansi art fix

This commit is contained in:
2026-05-13 19:22:32 +02:00
parent 07c48fc252
commit 2d6cc37ff0
2 changed files with 10 additions and 12 deletions

6
bbs.rb
View File

@@ -40,7 +40,7 @@ PROFILE = ProfileService.new(ProfileRepository.new(
STARTED_AT = Time.now STARTED_AT = Time.now
SYSOPS = ENV.fetch('BBS_SYSOPS', '').split(',').map { |s| s.strip.downcase }.reject(&:empty?) SYSOPS = ENV.fetch('BBS_SYSOPS', '').split(',').map { |s| s.strip.downcase }.reject(&:empty?)
DESKTOP_ART = ENV.fetch('BBS_DESKTOP_ART', 'data/art') DESKTOP_ART = ENV.fetch('BBS_DESKTOP_ART', 'data/art/teletype.ansi')
SERVICES = { SERVICES = {
online: ONLINE, online: ONLINE,
@@ -133,9 +133,7 @@ MAIN_APP = BBS::Application.define do
status_hint('Alt-X', 'Exit') { :halt } status_hint('Alt-X', 'Exit') { :halt }
init do init do
art = if File.directory?(DESKTOP_ART) art = if File.file?(DESKTOP_ART)
BBS::Widgets::AnsiArt.random(DESKTOP_ART)
elsif File.file?(DESKTOP_ART)
BBS::Widgets::AnsiArt.from_file(DESKTOP_ART) BBS::Widgets::AnsiArt.from_file(DESKTOP_ART)
else else
BBS::Widgets::AnsiArt.new(lines: BBS::Widgets::AnsiArt.default_lines) BBS::Widgets::AnsiArt.new(lines: BBS::Widgets::AnsiArt.default_lines)

View File

@@ -1,16 +1,16 @@
 ╔══════════════════════════════════════════════════════════════╗  ╔══════════════════════════════════════════════════════════════╗
 ║ ║  ║ ║
 ║ ██╗████████╗███████╗██╗ ██████╗████████╗██╗ ██╗  ║ ████████╗████████╗ ██████╗  
 ║ ╚═╝╚══██╔══╝██╔════╝██║ ██╔════╝╚══██╔══╝╚██╗ ██╔╝  ║ ╚══██╔══╝╚══██╔══╝██╔════╝  
 ║ ██╗ ██║ █████╗ ██║ ███████║ ╚████╔╝   ║  ██║ ██║ ██║ ███╗ 
 ║ ██║ ██║ ██╔══╝ ██║ ██╔══╝ ██║ ╚██╔╝   ║  ██║ ██║ ██║ ██ 
 ║ ██║ ██║ ██████╗███████╗███████╗ ██║ ██║   ║  ██║ ██║ ██████╔╝ 
 ║ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝ ╚═╝ ╚═╝   ║  ╚═╝ ╚═╝ ╚═════╝  
 ║ ║  ║ ║
 ║ · · · B · B · S · · ·  ║ Teletype Games BBS 
 ║ ║  ║ ║
 ║ ── an open call to old friends, est. 2024 ── ║  ║ ── an open call to old friends, est. 2026 ── ║
 ║ ║  ║ ║
 ╚══════════════════════════════════════════════════════════════╝  ╚══════════════════════════════════════════════════════════════╝