Improve /WINDOW DESCRIBE output

Instead of showing a meaningless pointer value for Screen:, we show the
screen number and ttyname.

Also take the CO, LI values from the window's screen.

Don't show the Prompt: unless one is set.
This commit is contained in:
Kevin Easton
2016-03-16 23:50:38 +11:00
parent 9427b3db84
commit f21b89e428
3 changed files with 34 additions and 41 deletions

View File

@@ -1531,10 +1531,15 @@ Screen * BX_create_new_screen(void)
if (!main_screen)
#ifdef GUI
gui_screen(new);
malloc_strcpy(&new->tty_name, "<GUI>");
gui_resize(new);
#else
{
extern char attach_ttyname[];
main_screen = new;
malloc_strcpy(&new->tty_name, attach_ttyname);
}
#endif
init_input();
return new;
@@ -1733,8 +1738,9 @@ extern Window *BX_create_additional_screen (void)
kill(child, SIGKILL);
return NULL;
}
else
malloc_strcpy(&new->tty_name, buffer);
chop(buffer, 1);
malloc_strcpy(&new->tty_name, buffer);
win = new_window(new);
refresh_screen(0, NULL);