Initialize the terminal IO custom ptr to NULL