Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Retrograde-i486/c9610ea95607ecf7c53e216a31ecd636 to your computer and use it in GitHub Desktop.
Save Retrograde-i486/c9610ea95607ecf7c53e216a31ecd636 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 - Tycho Rampancy Edition
#!/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 if you'd like to set that
# 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 on your screen, defaults to 2 seconds
# To adjust colors change lines under the See Ya Starside section from COL_RED to alternate (e.g. COL_GREEN for green)
#+-----------+
#| 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 ╨╩╩╫╫─ ╫╫╩╩╨╨└\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