fix colors and span pty for each new socket