Common initialization for orgcbr and orig_cursor.

This commit is contained in:
William McBrine
2006-10-18 23:09:16 +00:00
parent 83accde49e
commit 1241bfa21f
6 changed files with 14 additions and 17 deletions

View File

@@ -20,7 +20,7 @@
# include <sys/movedata.h>
#endif
RCSID("$Id: pdcscrn.c,v 1.64 2006/10/18 22:35:11 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.65 2006/10/18 23:09:16 wmcbrine Exp $");
int pdc_adapter; /* screen type */
int pdc_scrnmode; /* default screen mode */
@@ -562,9 +562,6 @@ int PDC_scr_open(int argc, char **argv)
SP->lines = PDC_get_rows();
SP->cols = PDC_get_columns();
SP->orig_cursor = PDC_get_cursor_mode();
SP->orgcbr = PDC_get_ctrl_break();
/* If the environment variable PDCURSES_BIOS is set, the DOS
int10() BIOS calls are used in place of direct video memory
access. */

View File

@@ -13,7 +13,7 @@
#include "pdcos2.h"
RCSID("$Id: pdcscrn.c,v 1.56 2006/10/15 02:42:25 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.57 2006/10/18 23:09:16 wmcbrine Exp $");
int pdc_font; /* default font size */
@@ -180,8 +180,6 @@ int PDC_scr_open(int argc, char **argv)
#endif
SP->lines = PDC_get_rows();
SP->cols = PDC_get_columns();
SP->orig_cursor = PDC_get_cursor_mode();
SP->orgcbr = PDC_get_ctrl_break();
/* This code for preserving the current screen */

View File

@@ -14,7 +14,7 @@
#include <curspriv.h>
#include <stdlib.h>
RCSID("$Id: initscr.c,v 1.79 2006/10/15 02:42:25 wmcbrine Exp $");
RCSID("$Id: initscr.c,v 1.80 2006/10/18 23:09:16 wmcbrine Exp $");
const char *_curses_notice = "PDCurses 3.0 - Public Domain 2006";
@@ -158,6 +158,9 @@ WINDOW *Xinitscr(int argc, char *argv[])
SP->linesrippedoffontop = 0;
SP->delaytenths = 0;
SP->orgcbr = PDC_get_ctrl_break();
SP->orig_cursor = PDC_get_cursor_mode();
LINES = SP->lines;
COLS = SP->cols;

View File

@@ -13,7 +13,7 @@
#include "pdcwin.h"
RCSID("$Id: pdcscrn.c,v 1.67 2006/10/15 02:42:26 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.68 2006/10/18 23:09:16 wmcbrine Exp $");
#define PDC_RESTORE_NONE 0
#define PDC_RESTORE_BUFFER 1
@@ -452,10 +452,6 @@ int PDC_scr_open(int argc, char **argv)
SP->mono = FALSE;
SP->orig_cursor = PDC_get_cursor_mode();
SP->orgcbr = PDC_get_ctrl_break();
if (is_nt)
{
console_info.Hwnd = _find_console_handle();

View File

@@ -13,7 +13,7 @@
#include "pdcx11.h"
RCSID("$Id: pdcgetsc.c,v 1.19 2006/10/15 02:42:26 wmcbrine Exp $");
RCSID("$Id: pdcgetsc.c,v 1.20 2006/10/18 23:09:16 wmcbrine Exp $");
/*man-start**************************************************************
@@ -43,6 +43,11 @@ int PDC_get_columns(void)
return XCursesCOLS;
}
int PDC_get_cursor_mode(void)
{
return 0;
}
/*man-start**************************************************************
PDC_get_rows() - Return number of screen rows.

View File

@@ -13,7 +13,7 @@
#include "pdcx11.h"
RCSID("$Id: pdcscrn.c,v 1.44 2006/10/15 02:42:26 wmcbrine Exp $");
RCSID("$Id: pdcscrn.c,v 1.45 2006/10/18 23:09:16 wmcbrine Exp $");
/*man-start**************************************************************
@@ -70,9 +70,7 @@ int PDC_scr_open(int argc, char **argv)
return ERR;
SP->cursrow = SP->curscol = 0;
SP->orig_cursor = 0;
SP->orig_attr = FALSE;
SP->orgcbr = 0;
SP->sb_on = sb_started;
SP->sb_total_y = 0;
SP->sb_viewport_y = 0;