Un gestionnaire en Curses de machines virtuelles pour KVM/Libvirt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
472 B

c=0
for fg in curses.COLOR_BLACK curses.COLOR_WHITE curses.COLOR_RED curses.COLOR_GREEN curses.COLOR_YELLOW curses.COLOR_BLUE curses.COLOR_MAGENTA curses.COLOR_CYAN
do
for bg in curses.COLOR_BLACK curses.COLOR_WHITE curses.COLOR_RED curses.COLOR_GREEN curses.COLOR_YELLOW curses.COLOR_BLUE curses.COLOR_MAGENTA curses.COLOR_CYAN
do
if [ $bg != $fg ]; then
c=$(( c+1 ))
echo "curses.init_pair($c, $fg, $bg)"
fi
done
done