Change IsTty() to IsTty(uintptr)