[New Script] lochat.sh: Chat locally from the same terminal
This commit is contained in:
parent
9ca8a0e149
commit
7cd4f26a53
53
lochat.sh
Executable file
53
lochat.sh
Executable file
@ -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
|
Loading…
x
Reference in New Issue
Block a user