Instead of hardcoded colors, use terminal state. This also means, we need to record the pointer to terminal state with vtbuf.
Instead of hardcoded colors, use terminal state. This also means, we need to record the pointer to terminal state with vtbuf.