Can you be more specific than just saying it doesn't work? What does happen when you type something in? Does select() hang? Does select() return but no input is read? Does it crash?