Skip to content

Instantly share code, notes, and snippets.

@Retrograde-i486
Forked from yyolk/seeyouspacecowboy.sh
Last active June 22, 2023 06:22
Show Gist options
  • Save Retrograde-i486/2cbd15548e694fb417987c6344b4f32b to your computer and use it in GitHub Desktop.
Save Retrograde-i486/2cbd15548e694fb417987c6344b4f32b to your computer and use it in GitHub Desktop.
A shell script to display terminal logout message from Bungie's Marathon (Classic 1994 edition) when logging out of a terminal
#!/usr/bin/env bash
#//==============================\\
#|| Marathon Terminal Logout 1.0 ||
#\\==============================//
# Marathon terminal logout v1.0 by Retrograde_i486
# Displays the terminal logout message from Bungie's Marathon (Classic 1994 edition)
# Includes extra information such as server name and time & date
# Inspiration from seeyouspacecowboy.sh by yyolk https://gist.github.com/yyolk/ba07f96e6a289e4e6fde21feab4f0bbb
#+--------------+
#| Installation |
#+--------------+
# 1. Create a .bash_logout file in your user home directory if you don't already have one
# Example: /home/username/.bash_logout
# 2. Create a new script file in your home directory called marathon_terminal_logout.sh
# 3. Copy everything from this file into your marathon_terminal_logout.sh file
# 4. Make sure the script is executable
# Example: sudo chmod +x marathon_terminal_logout.sh
# 5. Add the following 2 lines to .bash_logout
# #Execute Marathon Terminal Logout Script
# sh ~/marathon_terminal_logout.sh; sleep 2
# *Optional* Adjust the sleep variable to display the message for more seconds
# To adjust colors change lines under the See Ya Starside section from COL_RED to your option
#+-----------+
#| Variables |
#+-----------+
#Escape Sequence
ESC_SEQ="\x1b[38;5;"
#Display Server Hostname - not currently used
hostname=$(hostname)
#Display Server IP Address - not currently used
ip_address=$(hostname -I)
#Display Server Date and Time
date=$(date)
#Reset Colors
RESET="\033[m"
#+-------------------+
#| Color Information |
#+-------------------+
#Green Color
COL_GREEN=$(tput setaf 2)
#Red Color
COL_RED=$(tput setaf 1)
#Yellow Color
COL_YELLOW=$(tput setaf 3)
#Blue Color
COL_BLUE=$(tput setaf 4)
#Purple Color
COL_PURPLE=$(tput setaf 5)
#White Color
COL_WHITE=$(tput setaf 7)
#Normal Color
COL_NORMAL=$(tput sgr0)
# +-----------------+
# | See Ya Starside |
# +-----------------+
printf "$COL_RED Disconnecting... $date\n"
printf "$COL_RED \n"
printf "$COL_RED ╥╥╦╦╦╫╫╫╫╫╫╫╫╦╦╦╥╥\n"
printf "$COL_RED ╥╦╫╫╫╩╨╨ ╨╩╫╫╫╫╦╥\n"
printf "$COL_RED ╥╫╫╫╫╩ ╥╦╦╫╫╫╫╫╦╦╥ ╨╫╫╫╫╫╦\n"
printf "$COL_RED ╦╫╫╫╫╨ ╦╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╦╥ ╫╫╫╫╫╦\n"
printf "$COL_RED ╦╫╫╫╫╩ ╦╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╥ ╨╫╫╫╫╫╦\n"
printf "$COL_RED ╥╫╫╫╫╫╩ ┌╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╦ └╫╫╫╫╫╫╦\n"
printf "$COL_RED ╥╫╫╫╫╫╫ ╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╦ ╨╫╫╫╫╫╫╦\n"
printf "$COL_RED ╒╫╫╫╫╫╫╛ ╞╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫ ╫╫╫╫╫╫╫╦\n"
printf "$COL_RED ╫╫╫╫╫╫╫╬ ╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫ ╫╫╫╫╫╫╫╫\n"
printf "$COL_RED ╒╫╫╫╫╫╫╫╦ ╘╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫ ╫╫╫╫╫╫╫╫╦\n"
printf "$COL_RED ╫╫╫╫╫╫╫╫╫ ╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫ ╫╫╫╫╫╫╫╫╫╫\n"
printf "$COL_RED ╫╫╫╫╫╫╫╫╫╫ ╨╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫ ╥╫╫╫╫╫╫╫╫╫╫\n"
printf "$COL_RED ╫╫╫╫╫╫╫╫╫╫╫╥ ╩╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╨ ╫╫╫╫╫╫╫╫╫╫╫╫\n"
printf "$COL_RED ╘╫╫╫╫╫╫╫╫╫╫╫╦╥ ╨╩╫╫╫╫╫╫╫╫╫╫╫╩╨ ╦╫╫╫╫╫╫╫╫╫╫╫╫╛\n"
printf "$COL_RED ╫╫╫╫╫╫╫╫╫╫╫╫╫╫╦╥ ╙╙╙ ╥╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫\n"
printf "$COL_RED ╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╗╦╥ ╥╥╦╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫\n"
printf "$COL_RED ╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╕ ╒╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫┘\n"
printf "$COL_RED ╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╕ ╒╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫\n"
printf "$COL_RED ╨╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╕ ╒╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╨\n"
printf "$COL_RED ╨╫╫╫╫╫╫╫╫╫╫╫╫╫╫╕ ╒╫╫╫╫╫╫╫╫╫╫╫╫╫╫╫╨\n"
printf "$COL_RED ╨╫╫╫╫╫╫╫╫╫╫╫╕ ╒╫╫╫╫╫╫╫╫╫╫╫╫╩\n"
printf "$COL_RED ╨╨╫╫╫╫╫╫╫╕ ╒╫╫╫╫╫╫╫╫╩╨\n"
printf "$COL_RED ╨╨╨ ╨╨╨╨\n"
printf "$COL_RED \n"
printf "$COL_RED \n"
printf "$COL_RED U.E.S.C. Marathon\n"
printf "$COL_RED Public Access Terminal 39-z<34.6.31.12> \n"
printf "$COL_RED \n"
printf "$COL_RED \n"
printf "$COL_RED CAS.qterm//CyberAcme Systems, Inc. <931.461.60231.14.vt920>\n"
printf "$RESET" # Reset colors to "normal"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment