for i in {0..255}; do
printf "\033[48;5;${i}m %03d " $i
if (( ($i + 1) % 16 == 0 )); then
printf "\033[0m\n"
fi
done
执行以下命令可以强制终端为256色:
export TERM=xterm-256color
for i in {0..255}; do
printf "\033[48;5;${i}m %03d " $i
if (( ($i + 1) % 16 == 0 )); then
printf "\033[0m\n"
fi
done
执行以下命令可以强制终端为256色:
export TERM=xterm-256color
没有回复内容