Add two new flags when opening a tty