Add method to get console file descriptor