experimental config option TTY_PERM_INVENT
Add a rudimentary experimental always-up inventory display capability to tty when the perm_invent option is in effect. It requires an additional 28 rows available on the terminal underneath the bottom status line. It hasn't been optimized for performance as of yet.
This commit is contained in:
@@ -2364,13 +2364,18 @@ void nethack_enter_consoletty(void)
|
||||
console.orig_csbi.srWindow.Left + 1;
|
||||
console.Width = max(console.Width, COLNO);
|
||||
#else
|
||||
console.width = COLNO;
|
||||
// console.width = COLNO;
|
||||
console.width = console.orig_csbi.srWindow.Right -
|
||||
console.orig_csbi.srWindow.Left + 1;
|
||||
if (console.width < COLNO)
|
||||
console.width = COLNO;
|
||||
#endif
|
||||
|
||||
console.height = console.orig_csbi.srWindow.Bottom -
|
||||
console.orig_csbi.srWindow.Top + 1;
|
||||
console.height = max(console.height, ROWNO + 3);
|
||||
|
||||
// console.height = max(console.height, ROWNO + 3);
|
||||
if (console.height < (ROWNO + 2 + 1))
|
||||
console.height = (ROWNO + 2 + 1);
|
||||
console.buffer_size = console.width * console.height;
|
||||
|
||||
|
||||
|
||||
@@ -161,6 +161,12 @@ synch_cursor(void)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#ifdef TTY_PERM_INVENT
|
||||
void
|
||||
tty_perm_invent_toggled(boolean negated)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user