-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
#!/bin/bash | ||
|
||
# 색상 초기화 | ||
COLOR_RESET="\033[0m" | ||
|
||
# 일반 색상과 색상 코드 | ||
# declare -A colors | ||
# colors=( | ||
# [COLOR_BLACK]="\033[0;30m" | ||
# [COLOR_RED]="\033[0;31m" | ||
# [COLOR_GREEN]="\033[0;32m" | ||
# [COLOR_YELLOW]="\033[0;33m" | ||
# [COLOR_BLUE]="\033[0;34m" | ||
# [COLOR_MAGENTA]="\033[0;35m" | ||
# [COLOR_CYAN]="\033[0;36m" | ||
# ) | ||
|
||
# # 색상 출력 | ||
# for color_name in "${!colors[@]}"; do | ||
# color_code="${colors[$color_name]}" | ||
# echo -e "${color_code}This is $color_name ${COLOR_RESET}" | ||
# echo "$color_name: ${colors[$color_name]}" | ||
# done | ||
|
||
|
||
# echo "" | ||
# echo "" | ||
|
||
for ((i=0; i<=255; i++)) do | ||
|
||
|
||
if (( i == 0 )); then | ||
select_color="\033[38;5;${i}m" | ||
back="\033[48;5;${i}m" | ||
echo -en "${select_color}This is select_color${back}" | ||
echo -n "${select_color} ${back}" | ||
echo -en "${COLOR_RESET}" | ||
echo "" | ||
echo "" | ||
fi | ||
if (( i % 3 == 0 && i != 0 )); then | ||
select_color="\033[38;5;$((i-2))m" | ||
back="\033[48;5;$((i-2))m" | ||
echo -en "${select_color}This is select_color${back}" | ||
echo -n "${select_color} ${back}" | ||
echo -en "${COLOR_RESET}" | ||
|
||
select_color="\033[38;5;$((i-1))m" | ||
back="\033[48;5;$((i-1))m" | ||
echo -en "${select_color}This is select_color${back}" | ||
echo -n "${select_color} ${back}" | ||
echo -en "${COLOR_RESET}" | ||
|
||
select_color="\033[38;5;${i}m" | ||
back="\033[48;5;${i}m" | ||
echo -en "${select_color}This is select_color${back}" | ||
echo -n "${select_color} ${back}" | ||
echo -en "${COLOR_RESET}" | ||
|
||
echo "" | ||
|
||
select_color="\033[38;5;$((i-2))m" | ||
back="\033[48;5;$((i-2))m" | ||
echo -en "${select_color}This is select_color${back}" | ||
echo -n "${select_color} ${back}" | ||
echo -en "${COLOR_RESET}" | ||
|
||
select_color="\033[38;5;$((i-1))m" | ||
back="\033[48;5;$((i-1))m" | ||
echo -en "${select_color}This is select_color${back}" | ||
echo -n "${select_color} ${back}" | ||
echo -en "${COLOR_RESET}" | ||
|
||
select_color="\033[38;5;${i}m" | ||
back="\033[48;5;${i}m" | ||
echo -en "${select_color}This is select_color${back}" | ||
echo -n "${select_color} ${back}" | ||
echo -en "${COLOR_RESET}" | ||
|
||
echo "" | ||
echo "" | ||
fi | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 0.0.1 | ||
- 레포지토리 버전과 틀리면 다운받을지 선택하는 기능. | ||
- 레포지토리에서 덮어쓰기하면서 받을때 실행중인 스크립트 경로에 다운받음. |
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