Skip to content

Commit

Permalink
Doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmcbrine committed Sep 15, 2019
1 parent f294596 commit 956c5a4
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions wincon/pdcscrn.c
Expand Up @@ -415,32 +415,13 @@ int PDC_scr_open(void)

pdc_quick_edit = old_console_mode & 0x0040;

SP->lines = (str = getenv("LINES")) ? atoi(str) : PDC_get_rows();
SP->cols = (str = getenv("COLS")) ? atoi(str) : PDC_get_columns();

SP->mouse_wait = PDC_CLICK_PERIOD;
SP->audible = TRUE;

SP->termattrs = A_COLOR | A_REVERSE;
if (pdc_ansi)
SP->termattrs |= A_UNDERLINE | A_ITALIC;

if (SP->lines < 2 || SP->lines > csbi.dwMaximumWindowSize.Y)
{
fprintf(stderr, "LINES value must be >= 2 and <= %d: got %d\n",
csbi.dwMaximumWindowSize.Y, SP->lines);

return ERR;
}

if (SP->cols < 2 || SP->cols > csbi.dwMaximumWindowSize.X)
{
fprintf(stderr, "COLS value must be >= 2 and <= %d: got %d\n",
csbi.dwMaximumWindowSize.X, SP->cols);

return ERR;
}

SP->orig_fore = csbi.wAttributes & 0x0f;
SP->orig_back = (csbi.wAttributes & 0xf0) >> 4;

Expand Down

0 comments on commit 956c5a4

Please sign in to comment.