Added getmaxyx() to initialize().