client: fixed console color codes input, refs #412, refs #502