From 7cd4f26a53c71c9cf220a05441becb6f52ea4109 Mon Sep 17 00:00:00 2001 From: silvernode Date: Mon, 11 Jul 2016 04:04:27 -0500 Subject: [PATCH] [New Script] lochat.sh: Chat locally from the same terminal --- lochat.sh | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 lochat.sh diff --git a/lochat.sh b/lochat.sh new file mode 100755 index 0000000..25419ce --- /dev/null +++ b/lochat.sh @@ -0,0 +1,53 @@ +#!/bin/bash + + +# Colors +RED='\033[0;31m' +LRED="\033[1;31m" +BLUE="\033[0;34m" +LBLUE="\033[1;34m" +GREEN="\033[0;32m" +LGREEN="\033[1;32m" +YELLOW="\033[1;33m" +CYAN="\033[0;36m" +LCYAN="\033[1;36m" +PURPLE="\033[0;35m" +LPURPLE="\033[1;35m" +BWHITE="\e[1m" +NC='\033[0m' # No Color + +VOICEON="true" + + +#VoicControl (){ + if [ "${VOICEON}" = "true" ];then + MODE="espeak" + elif [ "${VOICEON}" = "false" ];then + MODE="echo" + fi +#} + +printf "${LBLUE}What is the name of person 1?:${NC} " +read person1 + +${MODE} "${person1} Joined the chat" + + +printf "${LPURPLE}What is the name of person 2?:${NC} " +read person2 + +${MODE} "${person2} joined the chat" +while true;do + + + + + printf "${LGREEN}${person1}:${NC} " + read something1 + + + + printf "${YELLOW}${person2}:${NC} " + read something2 + +done