<commit_before>/************************************************************************ 
 * This file is part of PDCurses. PDCurses is public domain software;	*
 * you may use it for any purpose. This software is provided AS IS with	*
 * NO WARRANTY whatsoever.						*
 *									*
 * If you use PDCurses in an application, an acknowledgement would be	*
 * appreciated, but is not mandatory. If you make corrections or	*
 * enhancements to PDCurses, please forward them to the current		*
 * maintainer for the benefit of other users.				*
 *									*
 * No distribution of modified PDCurses code may be made under the name	*
 * "PDCurses", except by the current maintainer. (Although PDCurses is	*
 * public domain, the name is a trademark.)				*
 *									*
 * See the file maintain.er for details of the current maintainer.	*
 ************************************************************************/

#define	CURSES_LIBRARY 1
#include <curses.h>

#ifdef PDCDEBUG
const char *rcsid_PDCscrn =
	"$Id: pdcscrn.c,v 1.21 2006/03/27 04:35:41 wmcbrine Exp $";
#endif

bool GLOBAL_sb_on = FALSE;
bool GLOBAL_slk_on = FALSE;

/*man-start**************************************************************

  PDC_scr_close()	- Internal low-level binding to close the
			  physical screen

  PDCurses Description:
	This is a nop for the DOS platform.

  PDCurses Return Value:
	This function returns OK on success, otherwise an ERR is returned.

  PDCurses Errors:
	The DOS platform will never fail.

  Portability:
	PDCurses  int PDC_scr_close(void);

**man-end****************************************************************/

int PDC_scr_close(void)
{
	PDC_LOG(("PDC_scr_close() - called\n"));

	return OK;
}

/*man-start**************************************************************

  PDC_scrn_modes_equal()	- Decide if two screen modes are equal

  PDCurses Description:
	Mainly required for OS/2. It decides if two screen modes
	(VIOMODEINFO structure) are equal. Under DOS it just compares
	two integers

  PDCurses Return Value:
	This function returns TRUE if equal else FALSe.

  PDCurses Errors:
	No errors are defined for this function.

  Portability:
	PDCurses  int PDC_scrn_modes_equal(int mode1, int mode2);
    OS2 PDCurses  int PDC_scrn_modes_equal(VIOMODEINFO mode1, 
					   VIOMODEINFO mode2);

**man-end****************************************************************/

bool PDC_scrn_modes_equal(int mode1, int mode2)
{
	PDC_LOG(("PDC_scrn_modes_equal() - called\n"));

	return (mode1 == mode2);
}

/*man-start**************************************************************

  PDC_scr_open()	- Internal low-level binding to open the physical
			  screen

  PDCurses Description:
	This is a NOP in DOS.<commit_msg>Removed meaningless implementation of PDC_scrn_modes_equal() for X11.<commit_after>/************************************************************************ 
 * This file is part of PDCurses. PDCurses is public domain software;	*
 * you may use it for any purpose. This software is provided AS IS with	*
 * NO WARRANTY whatsoever.						*
 *									*
 * If you use PDCurses in an application, an acknowledgement would be	*
 * appreciated, but is not mandatory. If you make corrections or	*
 * enhancements to PDCurses, please forward them to the current		*
 * maintainer for the benefit of other users.				*
 *									*
 * No distribution of modified PDCurses code may be made under the name	*
 * "PDCurses", except by the current maintainer. (Although PDCurses is	*
 * public domain, the name is a trademark.)				*
 *									*
 * See the file maintain.er for details of the current maintainer.	*
 ************************************************************************/

#define	CURSES_LIBRARY 1
#include <curses.h>

#ifdef PDCDEBUG
const char *rcsid_PDCscrn =
	"$Id: pdcscrn.c,v 1.22 2006/03/27 16:26:43 wmcbrine Exp $";
#endif

bool GLOBAL_sb_on = FALSE;
bool GLOBAL_slk_on = FALSE;

/*man-start**************************************************************

  PDC_scr_close()	- Internal low-level binding to close the
			  physical screen

  PDCurses Description:
	This is a nop for the DOS platform.

  PDCurses Return Value:
	This function returns OK on success, otherwise an ERR is returned.

  PDCurses Errors:
	The DOS platform will never fail.

  Portability:
	PDCurses  int PDC_scr_close(void);

**man-end****************************************************************/

int PDC_scr_close(void)
{
	PDC_LOG(("PDC_scr_close() - called\n"));

	return OK;
}

/*man-start**************************************************************

  PDC_scr_open()	- Internal low-level binding to open the physical
			  screen

  PDCurses Description:
	This is a NOP in DOS.
{'fraction_non_alphanumeric': 0.23285044737963356, 'fraction_numerical': 0.010225820195994887, 'mean_word_length': 4.3352272727272725, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5235575', 'n_tokens_mistral': 1530, 'n_tokens_neox': 1350, 'n_words': 480}