Last active
May 26, 2024 16:21
-
-
Save Retrograde-i486/1df37b3a24d247cfab6cd2518ae7c1ec 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 - Thoth Edition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 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_WHITE Disconnecting... $date\n" | |
printf "$COL_WHITE \n" | |
printf "$COL_WHITE ████████████████████\n" | |
printf "$COL_WHITE ████████████████████\n" | |
printf "$COL_WHITE ████████████████████\n" | |
printf "$COL_WHITE ██████████\n" | |
printf "$COL_WHITE ██████████ █▀▀▀▀▀▀█ ██████████\n" | |
printf "$COL_WHITE ██████████ ▀▀▀▀▀▀▀▀ ██████████\n" | |
printf "$COL_WHITE ██████████ ████████ ██████████\n" | |
printf "$COL_WHITE ██████████ ████████ ██████████\n" | |
printf "$COL_WHITE ▄▄▄▄▄▄▄▄▄▄██████████\n" | |
printf "$COL_WHITE ████████████████████\n" | |
printf "$COL_WHITE ████████████████████\n" | |
printf "$COL_WHITE ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀\n" | |
printf "$COL_WHITE \n" | |
printf "$COL_WHITE \n" | |
printf "$COL_WHITE readdress2^knstnt 49-f \n" | |
printf "$COL_WHITE \n" | |
printf "$COL_WHITE UESCTERM 802.11 <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