fix extract while [ 0 -ge 0 ] -> [ 0 -gt 0 ]
add xterm 256 color adjust code