curses 1.2.6 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/macos.yml +19 -0
- data/.github/workflows/ubuntu.yml +26 -0
- data/.github/workflows/windows.yml +28 -0
- data/.gitmodules +1 -1
- data/.travis.yml +6 -3
- data/History.md +40 -0
- data/README.md +4 -1
- data/Rakefile +0 -83
- data/curses.gemspec +2 -3
- data/ext/curses/curses.c +1271 -151
- data/ext/curses/extconf.rb +140 -17
- data/lib/curses.rb +5 -12
- data/sample/form.rb +52 -0
- data/sample/menu.rb +1 -1
- data/vendor/PDCurses/.gitignore +47 -0
- data/vendor/PDCurses/.travis.yml +49 -0
- data/vendor/PDCurses/CMakeLists.txt +68 -0
- data/vendor/PDCurses/HISTORY.md +2036 -0
- data/vendor/PDCurses/IMPLEMNT.md +327 -0
- data/vendor/PDCurses/README.md +77 -0
- data/vendor/PDCurses/acs_defs.h +265 -0
- data/vendor/PDCurses/appveyor.yml +218 -0
- data/vendor/PDCurses/cmake/README.md +71 -0
- data/vendor/PDCurses/cmake/build_dependencies.cmake +178 -0
- data/vendor/PDCurses/cmake/build_options.cmake +25 -0
- data/vendor/PDCurses/cmake/dll_version.cmake +26 -0
- data/vendor/PDCurses/cmake/gen_config_header.cmake +43 -0
- data/vendor/PDCurses/cmake/get_version.cmake +17 -0
- data/vendor/PDCurses/cmake/make_uninstall.cmake +19 -0
- data/vendor/PDCurses/cmake/project_common.cmake +121 -0
- data/vendor/PDCurses/cmake/resource.in.cmake +52 -0
- data/vendor/PDCurses/cmake/sdl2_ttf/CMakeLists.txt +83 -0
- data/vendor/PDCurses/cmake/target_arch.cmake +36 -0
- data/vendor/PDCurses/cmake/version.in.cmake +73 -0
- data/vendor/PDCurses/cmake/watcom_open_dos16_toolchain.cmake +96 -0
- data/vendor/PDCurses/cmake/watcom_open_dos32_toolchain.cmake +106 -0
- data/vendor/PDCurses/cmake/watcom_open_os2v2_toolchain.cmake +105 -0
- data/vendor/PDCurses/curses.h +1846 -0
- data/vendor/PDCurses/curspriv.h +134 -0
- data/vendor/PDCurses/demos/README.md +25 -0
- data/vendor/PDCurses/demos/firework.c +144 -0
- data/vendor/PDCurses/demos/newtest.c +581 -0
- data/vendor/PDCurses/demos/ozdemo.c +447 -0
- data/vendor/PDCurses/demos/ptest.c +283 -0
- data/vendor/PDCurses/demos/rain.c +157 -0
- data/vendor/PDCurses/demos/testcurs.c +1607 -0
- data/vendor/PDCurses/demos/tui.c +1048 -0
- data/vendor/PDCurses/demos/tui.h +65 -0
- data/vendor/PDCurses/demos/tuidemo.c +233 -0
- data/vendor/PDCurses/demos/version.c +61 -0
- data/vendor/PDCurses/demos/worm.c +432 -0
- data/vendor/PDCurses/demos/xmas.c +955 -0
- data/vendor/PDCurses/dos/CMakeLists.txt +47 -0
- data/vendor/PDCurses/dos/Makefile.bcc +83 -0
- data/vendor/PDCurses/dos/Makefile.dmc +257 -0
- data/vendor/PDCurses/dos/Makefile.msc +113 -0
- data/vendor/PDCurses/dos/Makefile.wcc +107 -0
- data/vendor/PDCurses/dos/README.md +51 -0
- data/vendor/PDCurses/dos/bccdos.lrf +9 -0
- data/vendor/PDCurses/dos/mscdos.lrf +50 -0
- data/vendor/PDCurses/dos/pdcclip.c +132 -0
- data/vendor/PDCurses/dos/pdcdisp.c +135 -0
- data/vendor/PDCurses/dos/pdcdos.h +194 -0
- data/vendor/PDCurses/dos/pdcgetsc.c +98 -0
- data/vendor/PDCurses/dos/pdckbd.c +513 -0
- data/vendor/PDCurses/dos/pdcscrn.c +785 -0
- data/vendor/PDCurses/dos/pdcsetsc.c +101 -0
- data/vendor/PDCurses/dos/pdcutil.c +212 -0
- data/vendor/PDCurses/libobjs.mif +26 -0
- data/vendor/PDCurses/makedist.mif +20 -0
- data/vendor/PDCurses/man/README.md +21 -0
- data/vendor/PDCurses/man/intro.md +361 -0
- data/vendor/PDCurses/man/manext.c +119 -0
- data/vendor/PDCurses/man/sdl.md +152 -0
- data/vendor/PDCurses/man/sdl2.md +58 -0
- data/vendor/PDCurses/man/x11.md +407 -0
- data/vendor/PDCurses/ncurses/CMakeLists.txt +66 -0
- data/vendor/PDCurses/ncurses/README.md +26 -0
- data/vendor/PDCurses/ncurses/makefile +29 -0
- data/vendor/PDCurses/os2/CMakeLists.txt +41 -0
- data/vendor/PDCurses/os2/Makefile.bcc +90 -0
- data/vendor/PDCurses/os2/Makefile.wcc +43 -0
- data/vendor/PDCurses/os2/README.md +43 -0
- data/vendor/PDCurses/os2/iccos2.lrf +50 -0
- data/vendor/PDCurses/os2/iccos2.mak +256 -0
- data/vendor/PDCurses/os2/pdcclip.c +188 -0
- data/vendor/PDCurses/os2/pdcdisp.c +93 -0
- data/vendor/PDCurses/os2/pdcgetsc.c +89 -0
- data/vendor/PDCurses/os2/pdckbd.c +521 -0
- data/vendor/PDCurses/os2/pdcos2.h +55 -0
- data/vendor/PDCurses/os2/pdcscrn.c +449 -0
- data/vendor/PDCurses/os2/pdcsetsc.c +112 -0
- data/vendor/PDCurses/os2/pdcutil.c +52 -0
- data/vendor/PDCurses/panel.h +56 -0
- data/vendor/PDCurses/pdcurses/README.md +25 -0
- data/vendor/PDCurses/pdcurses/addch.c +693 -0
- data/vendor/PDCurses/pdcurses/addchstr.c +245 -0
- data/vendor/PDCurses/pdcurses/addstr.c +240 -0
- data/vendor/PDCurses/pdcurses/attr.c +359 -0
- data/vendor/PDCurses/pdcurses/beep.c +68 -0
- data/vendor/PDCurses/pdcurses/bkgd.c +223 -0
- data/vendor/PDCurses/pdcurses/border.c +411 -0
- data/vendor/PDCurses/pdcurses/clear.c +159 -0
- data/vendor/PDCurses/pdcurses/color.c +298 -0
- data/vendor/PDCurses/pdcurses/debug.c +109 -0
- data/vendor/PDCurses/pdcurses/delch.c +96 -0
- data/vendor/PDCurses/pdcurses/deleteln.c +211 -0
- data/vendor/PDCurses/pdcurses/deprec.c +27 -0
- data/vendor/PDCurses/pdcurses/getch.c +417 -0
- data/vendor/PDCurses/pdcurses/getstr.c +474 -0
- data/vendor/PDCurses/pdcurses/getyx.c +139 -0
- data/vendor/PDCurses/pdcurses/inch.c +127 -0
- data/vendor/PDCurses/pdcurses/inchstr.c +214 -0
- data/vendor/PDCurses/pdcurses/initscr.c +367 -0
- data/vendor/PDCurses/pdcurses/inopts.c +324 -0
- data/vendor/PDCurses/pdcurses/insch.c +271 -0
- data/vendor/PDCurses/pdcurses/insstr.c +264 -0
- data/vendor/PDCurses/pdcurses/instr.c +246 -0
- data/vendor/PDCurses/pdcurses/kernel.c +259 -0
- data/vendor/PDCurses/pdcurses/keyname.c +157 -0
- data/vendor/PDCurses/pdcurses/mouse.c +438 -0
- data/vendor/PDCurses/pdcurses/move.c +57 -0
- data/vendor/PDCurses/pdcurses/outopts.c +159 -0
- data/vendor/PDCurses/pdcurses/overlay.c +214 -0
- data/vendor/PDCurses/pdcurses/pad.c +260 -0
- data/vendor/PDCurses/pdcurses/panel.c +633 -0
- data/vendor/PDCurses/pdcurses/printw.c +126 -0
- data/vendor/PDCurses/pdcurses/refresh.c +279 -0
- data/vendor/PDCurses/pdcurses/scanw.c +578 -0
- data/vendor/PDCurses/pdcurses/scr_dump.c +213 -0
- data/vendor/PDCurses/pdcurses/scroll.c +101 -0
- data/vendor/PDCurses/pdcurses/slk.c +591 -0
- data/vendor/PDCurses/pdcurses/termattr.c +182 -0
- data/vendor/PDCurses/pdcurses/terminfo.c +217 -0
- data/vendor/PDCurses/pdcurses/touch.c +163 -0
- data/vendor/PDCurses/pdcurses/util.c +312 -0
- data/vendor/PDCurses/pdcurses/window.c +569 -0
- data/vendor/PDCurses/sdl1/Makefile.mng +110 -0
- data/vendor/PDCurses/sdl1/README.md +31 -0
- data/vendor/PDCurses/sdl1/deffont.h +385 -0
- data/vendor/PDCurses/sdl1/deficon.h +23 -0
- data/vendor/PDCurses/sdl1/pdcclip.c +131 -0
- data/vendor/PDCurses/sdl1/pdcdisp.c +373 -0
- data/vendor/PDCurses/sdl1/pdcgetsc.c +30 -0
- data/vendor/PDCurses/sdl1/pdckbd.c +405 -0
- data/vendor/PDCurses/sdl1/pdcscrn.c +414 -0
- data/vendor/PDCurses/sdl1/pdcsdl.h +31 -0
- data/vendor/PDCurses/sdl1/pdcsetsc.c +64 -0
- data/vendor/PDCurses/sdl1/pdcutil.c +40 -0
- data/vendor/PDCurses/sdl1/sdltest.c +79 -0
- data/vendor/PDCurses/sdl2/CMakeLists.txt +76 -0
- data/vendor/PDCurses/sdl2/Makefile.vc +164 -0
- data/vendor/PDCurses/sdl2/README.md +34 -0
- data/vendor/PDCurses/sdl2/deffont.h +385 -0
- data/vendor/PDCurses/sdl2/deficon.h +23 -0
- data/vendor/PDCurses/sdl2/pdcclip.c +93 -0
- data/vendor/PDCurses/sdl2/pdcdisp.c +534 -0
- data/vendor/PDCurses/sdl2/pdcgetsc.c +30 -0
- data/vendor/PDCurses/sdl2/pdckbd.c +480 -0
- data/vendor/PDCurses/sdl2/pdcscrn.c +443 -0
- data/vendor/PDCurses/sdl2/pdcsdl.h +33 -0
- data/vendor/PDCurses/sdl2/pdcsetsc.c +67 -0
- data/vendor/PDCurses/sdl2/pdcutil.c +39 -0
- data/vendor/PDCurses/sdl2/sdltest.c +81 -0
- data/vendor/PDCurses/term.h +48 -0
- data/vendor/PDCurses/version.mif +7 -0
- data/vendor/PDCurses/vt/CMakeLists.txt +28 -0
- data/vendor/PDCurses/vt/Makefile.bcc +111 -0
- data/vendor/PDCurses/vt/Makefile.dmc +258 -0
- data/vendor/PDCurses/vt/Makefile.vc +144 -0
- data/vendor/PDCurses/vt/Makefile.wcc +107 -0
- data/vendor/PDCurses/vt/README.md +64 -0
- data/vendor/PDCurses/vt/pdcclip.c +20 -0
- data/vendor/PDCurses/vt/pdcdisp.c +284 -0
- data/vendor/PDCurses/vt/pdcgetsc.c +27 -0
- data/vendor/PDCurses/vt/pdckbd.c +394 -0
- data/vendor/PDCurses/vt/pdcscrn.c +434 -0
- data/vendor/PDCurses/vt/pdcsetsc.c +45 -0
- data/vendor/PDCurses/vt/pdcutil.c +43 -0
- data/vendor/PDCurses/vt/pdcvt.h +16 -0
- data/vendor/PDCurses/watcom.mif +68 -0
- data/vendor/PDCurses/wincon/CMakeLists.txt +27 -0
- data/vendor/PDCurses/wincon/Makefile.bcc +88 -0
- data/vendor/PDCurses/wincon/Makefile.dmc +256 -0
- data/vendor/PDCurses/wincon/Makefile.lcc +273 -0
- data/vendor/PDCurses/wincon/Makefile.mng +176 -0
- data/vendor/PDCurses/wincon/Makefile.vc +144 -0
- data/vendor/PDCurses/wincon/Makefile.wcc +51 -0
- data/vendor/PDCurses/wincon/README.md +85 -0
- data/vendor/PDCurses/wincon/pdcclip.c +174 -0
- data/vendor/PDCurses/wincon/pdcdisp.c +143 -0
- data/vendor/PDCurses/wincon/pdcgetsc.c +55 -0
- data/vendor/PDCurses/wincon/pdckbd.c +786 -0
- data/vendor/PDCurses/wincon/pdcscrn.c +717 -0
- data/vendor/PDCurses/wincon/pdcsetsc.c +91 -0
- data/vendor/PDCurses/wincon/pdcurses.ico +0 -0
- data/vendor/PDCurses/wincon/pdcurses.rc +28 -0
- data/vendor/PDCurses/wincon/pdcutil.c +41 -0
- data/vendor/PDCurses/wincon/pdcwin.h +31 -0
- data/vendor/PDCurses/wingui/CMakeLists.txt +27 -0
- data/vendor/PDCurses/wingui/Makefile.bcc +85 -0
- data/vendor/PDCurses/wingui/Makefile.dmc +259 -0
- data/vendor/PDCurses/wingui/Makefile.lcc +273 -0
- data/vendor/PDCurses/wingui/Makefile.mng +171 -0
- data/vendor/PDCurses/wingui/Makefile.vc +144 -0
- data/vendor/PDCurses/wingui/Makefile.wcc +51 -0
- data/vendor/PDCurses/wingui/README.md +93 -0
- data/vendor/PDCurses/wingui/pdcclip.c +174 -0
- data/vendor/PDCurses/wingui/pdcdisp.c +718 -0
- data/vendor/PDCurses/wingui/pdcgetsc.c +30 -0
- data/vendor/PDCurses/wingui/pdckbd.c +143 -0
- data/vendor/PDCurses/wingui/pdcscrn.c +2797 -0
- data/vendor/PDCurses/wingui/pdcsetsc.c +89 -0
- data/vendor/PDCurses/wingui/pdcurses.ico +0 -0
- data/vendor/PDCurses/wingui/pdcurses.rc +28 -0
- data/vendor/PDCurses/wingui/pdcutil.c +61 -0
- data/vendor/PDCurses/wingui/pdcwin.h +122 -0
- data/vendor/PDCurses/x11/Makefile.in +754 -0
- data/vendor/PDCurses/x11/PDCurses.spec +82 -0
- data/vendor/PDCurses/x11/README.md +62 -0
- data/vendor/PDCurses/x11/ScrollBox.c +319 -0
- data/vendor/PDCurses/x11/ScrollBox.h +51 -0
- data/vendor/PDCurses/x11/ScrollBoxP.h +70 -0
- data/vendor/PDCurses/x11/aclocal.m4 +994 -0
- data/vendor/PDCurses/x11/big_icon.xbm +46 -0
- data/vendor/PDCurses/x11/compose.h +201 -0
- data/vendor/PDCurses/x11/config.guess +1500 -0
- data/vendor/PDCurses/x11/config.h.in +100 -0
- data/vendor/PDCurses/x11/config.sub +1616 -0
- data/vendor/PDCurses/x11/configure +6700 -0
- data/vendor/PDCurses/x11/configure.ac +295 -0
- data/vendor/PDCurses/x11/debian/changelog +6 -0
- data/vendor/PDCurses/x11/debian/compat +1 -0
- data/vendor/PDCurses/x11/debian/control +11 -0
- data/vendor/PDCurses/x11/debian/copyright +27 -0
- data/vendor/PDCurses/x11/debian/rules +98 -0
- data/vendor/PDCurses/x11/install-sh +253 -0
- data/vendor/PDCurses/x11/little_icon.xbm +14 -0
- data/vendor/PDCurses/x11/ncurses_cfg.h +45 -0
- data/vendor/PDCurses/x11/pdcclip.c +173 -0
- data/vendor/PDCurses/x11/pdcdisp.c +85 -0
- data/vendor/PDCurses/x11/pdcgetsc.c +28 -0
- data/vendor/PDCurses/x11/pdckbd.c +104 -0
- data/vendor/PDCurses/x11/pdcscrn.c +258 -0
- data/vendor/PDCurses/x11/pdcsetsc.c +95 -0
- data/vendor/PDCurses/x11/pdcutil.c +52 -0
- data/vendor/PDCurses/x11/pdcx11.c +316 -0
- data/vendor/PDCurses/x11/pdcx11.h +191 -0
- data/vendor/PDCurses/x11/sb.c +155 -0
- data/vendor/PDCurses/x11/x11.c +3686 -0
- data/vendor/PDCurses/x11/xcurses-config.in +81 -0
- metadata +255 -21
@@ -0,0 +1,119 @@
|
|
1
|
+
/***********************************************************************/
|
2
|
+
/* MANEXT - Extract manual pages from C source code. */
|
3
|
+
/***********************************************************************/
|
4
|
+
/*
|
5
|
+
* MANEXT - A program to extract manual pages from C source code.
|
6
|
+
* Copyright (C) 1991-1996 Mark Hessling
|
7
|
+
*
|
8
|
+
* This program is free software; you can redistribute it and/or
|
9
|
+
* modify it under the terms of the GNU General Public License as
|
10
|
+
* published by the Free Software Foundation; either version 2 of
|
11
|
+
* the License, or any later version.
|
12
|
+
*
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
16
|
+
* General Public License for more details.
|
17
|
+
*
|
18
|
+
* If you make modifications to this software that you feel increases
|
19
|
+
* it usefulness for the rest of the community, please email the
|
20
|
+
* changes, enhancements, bug fixes as well as any and all ideas to me.
|
21
|
+
* This software is going to be maintained and enhanced as deemed
|
22
|
+
* necessary by the community.
|
23
|
+
*
|
24
|
+
* Mark Hessling <mark@rexx.org>
|
25
|
+
*/
|
26
|
+
|
27
|
+
#include <stdio.h>
|
28
|
+
#include <stdlib.h>
|
29
|
+
#include <string.h>
|
30
|
+
|
31
|
+
#define MAX_LINE 255
|
32
|
+
|
33
|
+
void display_info()
|
34
|
+
{
|
35
|
+
fprintf(stderr, "\nMANEXT 1.03 Copyright (C) 1991-1996 Mark Hessling\n"
|
36
|
+
"All rights reserved.\n"
|
37
|
+
"MANEXT is distributed under the terms of the GNU\n"
|
38
|
+
"General Public License and comes with NO WARRANTY.\n"
|
39
|
+
"See the file COPYING for details.\n"
|
40
|
+
"\nUsage: manext sourcefile [...]\n\n");
|
41
|
+
}
|
42
|
+
|
43
|
+
int main(int argc, char **argv)
|
44
|
+
{
|
45
|
+
char s[MAX_LINE + 1]; /* input line */
|
46
|
+
int i;
|
47
|
+
FILE *fp;
|
48
|
+
|
49
|
+
#ifdef __EMX__
|
50
|
+
_wildcard(&argc, &argv);
|
51
|
+
#endif
|
52
|
+
if (strcmp(argv[1], "-h") == 0)
|
53
|
+
{
|
54
|
+
display_info();
|
55
|
+
exit(1);
|
56
|
+
}
|
57
|
+
|
58
|
+
for (i = 1; i < argc; i++)
|
59
|
+
{
|
60
|
+
if ((fp = fopen(argv[i], "r")) == NULL)
|
61
|
+
{
|
62
|
+
fprintf(stderr, "\nCould not open %s\n", argv[i]);
|
63
|
+
continue;
|
64
|
+
}
|
65
|
+
|
66
|
+
while (!feof(fp))
|
67
|
+
{
|
68
|
+
if (fgets(s, (int)sizeof(s), fp) == NULL)
|
69
|
+
{
|
70
|
+
if (ferror(fp) != 0)
|
71
|
+
{
|
72
|
+
fprintf(stderr, "*** Error reading %s. Exiting.\n",
|
73
|
+
argv[i]);
|
74
|
+
exit(1);
|
75
|
+
}
|
76
|
+
|
77
|
+
break;
|
78
|
+
}
|
79
|
+
|
80
|
+
/* check for manual entry marker at beginning of line */
|
81
|
+
|
82
|
+
if (strncmp(s, "/*man-start*", 12) != 0)
|
83
|
+
continue;
|
84
|
+
|
85
|
+
/* inner loop */
|
86
|
+
|
87
|
+
for (;;)
|
88
|
+
{
|
89
|
+
/* read next line of manual entry */
|
90
|
+
|
91
|
+
if (fgets(s, (int)sizeof(s), fp) == NULL)
|
92
|
+
{
|
93
|
+
if (ferror(fp) != 0)
|
94
|
+
{
|
95
|
+
fprintf(stderr, "*** Error reading %s. Exiting.\n",
|
96
|
+
argv[i]);
|
97
|
+
exit(1);
|
98
|
+
}
|
99
|
+
|
100
|
+
break;
|
101
|
+
}
|
102
|
+
|
103
|
+
/* check for end of entry marker */
|
104
|
+
|
105
|
+
if (strncmp(s, "**man-end", 9) == 0)
|
106
|
+
break;
|
107
|
+
|
108
|
+
printf("%s", s);
|
109
|
+
}
|
110
|
+
|
111
|
+
printf("\n\n-----------------------------------"
|
112
|
+
"---------------------------------------\n\n");
|
113
|
+
}
|
114
|
+
|
115
|
+
fclose(fp);
|
116
|
+
}
|
117
|
+
|
118
|
+
return 0;
|
119
|
+
}
|
@@ -0,0 +1,152 @@
|
|
1
|
+
SDL Considerations
|
2
|
+
==================
|
3
|
+
|
4
|
+
There are no special requirements to use PDCurses for SDL -- all
|
5
|
+
PDCurses-compatible code should work fine. (In fact, you can even build
|
6
|
+
against the Win32 console pdcurses.dll, and then swap in the SDL
|
7
|
+
pdcurses.dll.) Nothing extra is needed beyond the base SDL library.
|
8
|
+
However, there are some optional special features, described here.
|
9
|
+
|
10
|
+
The principal limitation of this port is that input is currently
|
11
|
+
restricted to ASCII (i.e., 0-127), plus the special keys like KEY_LEFT.
|
12
|
+
(You could have Unicode input, but then the input wouldn't match the
|
13
|
+
output, which is in Code Page 437.) Also, see the note about the
|
14
|
+
potential for incomplete output under "PDC_update_rects()", below.
|
15
|
+
|
16
|
+
|
17
|
+
Fonts
|
18
|
+
-----
|
19
|
+
|
20
|
+
The font is a simple BMP, 32 characters wide by 8 characters tall,
|
21
|
+
preferably with a palette. (BMPs without palettes still work, but in
|
22
|
+
that case, no attributes will be available, nor will the cursor work.)
|
23
|
+
The first entry in the palette (usually black) is treated as the
|
24
|
+
background color; the last entry (usually white) is treated as the
|
25
|
+
foreground. These are changed or made transparent as appropriate; any
|
26
|
+
other colors in the palette are passed through unchanged. So -- although
|
27
|
+
a one-bit depth is sufficient for a normal font -- you could redraw some
|
28
|
+
characters as multi-colored tiles.
|
29
|
+
|
30
|
+
The font must be monospaced. The size of each character is derived by
|
31
|
+
dividing the width of the BMP by 32 and the height by 8. There is no
|
32
|
+
constraint on the dimensions.
|
33
|
+
|
34
|
+
As provided in the default font and expected by acs_map[], the font is
|
35
|
+
in Code Page 437 form. But you can of course use any layout if you're
|
36
|
+
not relying on correct values for the ACS_* macros.
|
37
|
+
|
38
|
+
The font can be set via the environment variable PDC_FONT. If it's not
|
39
|
+
set, PDCurses looks for a file named "pdcfont.bmp" in the current
|
40
|
+
directory at the time of initscr(). If neither is found, it uses the
|
41
|
+
built-in default font encoded in deffont.h.
|
42
|
+
|
43
|
+
|
44
|
+
Backgrounds
|
45
|
+
-----------
|
46
|
+
|
47
|
+
PDCurses for SDL supports an optional background image BMP. This is used
|
48
|
+
whenever start_color() has not been called (see the ptest demo for an
|
49
|
+
example), or when use_default_colors() has been called after
|
50
|
+
start_color(), and the background color of a pair has been set to -1
|
51
|
+
(see ozdemo, worm, and rain for examples). The usage parallels that of
|
52
|
+
ncurses in an appropriate terminal (e.g., Gnome Terminal). The image is
|
53
|
+
tiled to cover the PDCurses window, and can be any size or depth.
|
54
|
+
|
55
|
+
As with the font, you can point to a location for the background via the
|
56
|
+
environment variable PDC_BACKGROUND; "pdcback.bmp" is the fallback.
|
57
|
+
(There is no default background.)
|
58
|
+
|
59
|
+
|
60
|
+
Icons
|
61
|
+
-----
|
62
|
+
|
63
|
+
The icon (used with SDL_WM_SetIcon() -- not used for the executable
|
64
|
+
file) can be set via the environment variable PDC_ICON, and falls back
|
65
|
+
to "pdcicon.bmp", and then to the built-in icon from deficon.h. The
|
66
|
+
built-in icon is the PDCurses logo, as seen in ../x11/little_icon.xbm.
|
67
|
+
The SDL docs say that the icon must be 32x32, at least for use with MS
|
68
|
+
Windows.
|
69
|
+
|
70
|
+
If pdc_screen is preinitialized (see below), PDCurses does not attempt
|
71
|
+
to set the icon.
|
72
|
+
|
73
|
+
|
74
|
+
Screen size
|
75
|
+
-----------
|
76
|
+
|
77
|
+
The default screen size is 80x25 characters (whatever size they may be),
|
78
|
+
but you can override this via the environment variables PDC_COLS and/or
|
79
|
+
PDC_LINES. (Some other ports use COLS and LINES; this is not done here
|
80
|
+
because those values are, or should be, those of the controlling
|
81
|
+
terminal, and PDCurses for SDL is independent of the terminal.) If
|
82
|
+
pdc_screen is preinitialized (see below), these are ignored.
|
83
|
+
|
84
|
+
|
85
|
+
Integration with SDL
|
86
|
+
--------------------
|
87
|
+
|
88
|
+
If you want to go further, you can mix PDCurses and SDL functions. (Of
|
89
|
+
course this is extremely non-portable!) To aid you, there are several
|
90
|
+
external variables and functions specific to the SDL port; you could
|
91
|
+
include pdcsdl.h, or just add the declarations you need in your code:
|
92
|
+
|
93
|
+
PDCEX SDL_Surface *pdc_screen, *pdc_font, *pdc_icon, *pdc_back;
|
94
|
+
PDCEX int pdc_sheight, pdc_swidth, pdc_yoffset, pdc_xoffset;
|
95
|
+
|
96
|
+
void PDC_update_rects(void);
|
97
|
+
void PDC_retile(void);
|
98
|
+
|
99
|
+
pdc_screen is the main surface, created by SDL_SetVideoMode(), unless
|
100
|
+
it's preset before initscr(). You can perform normal SDL operations on
|
101
|
+
this surface, but PDCurses won't respect them when it updates. (For
|
102
|
+
that, see PDC_retile().) As an alternative, you can preinitialize this
|
103
|
+
surface before calling initscr(). In that case, you can use pdc_sheight,
|
104
|
+
pdc_swidth, pdc_yoffset and/or pdc_xoffset (q.v.) to confine PDCurses to
|
105
|
+
only a specific area of the surface, reserving the rest for other SDL
|
106
|
+
operations. If you preinitialize pdc_screen, you'll have to close it
|
107
|
+
yourself; PDCurses will ignore resize events, and won't try to set the
|
108
|
+
icon. Also note that if you preinitialize pdc_screen, it need not be the
|
109
|
+
display surface.
|
110
|
+
|
111
|
+
pdc_font, pdc_icon, and pdc_back are the SDL_surfaces for the font,
|
112
|
+
icon, and background, respectively. You can set any or all of them
|
113
|
+
before initscr(), and thus override any of the other ways to set them.
|
114
|
+
But note that pdc_icon will be ignored if pdc_screen is preset.
|
115
|
+
|
116
|
+
pdc_sheight and pdc_swidth are the dimensions of the area of pdc_screen
|
117
|
+
to be used by PDCurses. You can preset them before initscr(); if either
|
118
|
+
is not set, it defaults to the full screen size minus the x or y offset,
|
119
|
+
as appropriate.
|
120
|
+
|
121
|
+
pdc_xoffset and pdc_yoffset are the x and y offset for the area of
|
122
|
+
pdc_screen to be used by PDCurses. See the sdltest demo for an example.
|
123
|
+
|
124
|
+
PDC_retile() makes a copy of pdc_screen, then tiles it with the
|
125
|
+
background image, if any. The resulting surface is used as the
|
126
|
+
background for transparent character cells. PDC_retile() is called from
|
127
|
+
initscr() and resize_term(). However, you can also use it at other
|
128
|
+
times, to take advantage of the way it copies pdc_screen: Draw some SDL
|
129
|
+
stuff; call PDC_retile(); do some curses stuff -- it will use whatever
|
130
|
+
was on pdc_screen as the background. Then you can erase the curses
|
131
|
+
screen, do some more SDL stuff, and call PDC_retile() again to make a
|
132
|
+
new background. (If you don't erase the curses screen, it will be
|
133
|
+
incorporated into the background when you call PDC_retile().) But this
|
134
|
+
only works if no background image is set.
|
135
|
+
|
136
|
+
PDC_update_rects() is how the screen actually gets updated. For
|
137
|
+
performance reasons, when drawing, PDCurses for SDL maintains a table of
|
138
|
+
rectangles that need updating, and only updates (by calling this
|
139
|
+
function) during getch(), napms(), or when the table gets full.
|
140
|
+
Normally, this is sufficient; but if you're pausing in some way other
|
141
|
+
than by using napms(), and you're not doing keyboard checks, you may get
|
142
|
+
an incomplete update. If that happens, you can call PDC_update_rects()
|
143
|
+
manually.
|
144
|
+
|
145
|
+
|
146
|
+
Interaction with stdio
|
147
|
+
----------------------
|
148
|
+
|
149
|
+
As with X11, it's a bad idea to mix curses and stdio calls. (In fact,
|
150
|
+
that's true for PDCurses on any platform; but especially these two,
|
151
|
+
which don't run under terminals.) Depending on how SDL is built, stdout
|
152
|
+
and stderr may be redirected to files.
|
@@ -0,0 +1,58 @@
|
|
1
|
+
SDL2 Considerations
|
2
|
+
===================
|
3
|
+
|
4
|
+
Most of the information in the [SDL Considerations](sdl.md) document is also
|
5
|
+
valid for the SDL2 platform. This document describes the differences.
|
6
|
+
|
7
|
+
|
8
|
+
Integration with SDL2
|
9
|
+
---------------------
|
10
|
+
|
11
|
+
As mentioned in the [SDL Considerations](sdl.md) document, the SDL port uses
|
12
|
+
the following variables:
|
13
|
+
|
14
|
+
SDL_Surface *pdc_screen, *pdc_font, *pdc_icon, *pdc_back;
|
15
|
+
int pdc_sheight, pdc_swidth, pdc_yoffset, pdc_xoffset;
|
16
|
+
|
17
|
+
The SDL2 port adds:
|
18
|
+
|
19
|
+
SDL_Window *pdc_window;
|
20
|
+
|
21
|
+
These can be used or modified in your own code. Like the `pdc_screen` variable
|
22
|
+
used by the SDL port, you can initialize `pdc_window` in your own code. See the
|
23
|
+
sdltest demo for an example. If it's not initialized, PDCurses will do it for
|
24
|
+
you. If PDCurses initializes `pdc_window`, it will clean up/deallocate these
|
25
|
+
variables on exit.
|
26
|
+
|
27
|
+
|
28
|
+
Fonts
|
29
|
+
-----
|
30
|
+
|
31
|
+
If the `PDC_WIDE` flag is set during compilation, SDL2_ttf is used to render
|
32
|
+
fonts. This allows for use of a full UCS-2 (16 bit Unicode) character set.
|
33
|
+
|
34
|
+
Using SDL2_ttf adds:
|
35
|
+
|
36
|
+
TTF_Font *pdc_ttffont;
|
37
|
+
int pdc_font_size;
|
38
|
+
|
39
|
+
The default TrueType font can be modified by setting a define during compile
|
40
|
+
time (e.g. `-DPDC_FONT_PATH=/usr/share/fonts/truetype/dejavu/`). This can be
|
41
|
+
overridden by initializing `pdc_ttffont` in your own code. Similar
|
42
|
+
to the `PDC_FONT` environment variable for bitmap fonts, one can also override
|
43
|
+
TTF fonts using the `PDC_FONT` environment variables. Unless modified during
|
44
|
+
compile time, the defaults are:
|
45
|
+
|
46
|
+
Windows: C:/Windows/Fonts/lucon.ttf
|
47
|
+
OS X: /Library/Fonts/Courier New.ttf
|
48
|
+
Other: /usr/share/fonts/truetype/freefont/FreeMono.ttf
|
49
|
+
|
50
|
+
Font size can be set using the `PDC_FONT_SIZE` environment variable or by
|
51
|
+
setting the value of `pdc_font_size` in your own code. The default size is 18.
|
52
|
+
|
53
|
+
|
54
|
+
Clipboard
|
55
|
+
---------
|
56
|
+
|
57
|
+
SDL2 port uses functionality provided by the SDL2 clipboard functions to add
|
58
|
+
basic clipboard support.
|
@@ -0,0 +1,407 @@
|
|
1
|
+
X11 Considerations
|
2
|
+
==================
|
3
|
+
|
4
|
+
PDCurses for X11 uses the System V IPC shared memory facility, along
|
5
|
+
with sockets, to share data between the curses program and the child
|
6
|
+
process created to manage the X stuff.
|
7
|
+
|
8
|
+
When compiling your application, you need to include the \<curses.h\> or
|
9
|
+
\<xcurses.h\> that comes with PDCurses. You also need to link your code
|
10
|
+
with libXCurses. You may need to link with the following libraries under
|
11
|
+
X11R5:
|
12
|
+
|
13
|
+
Xaw Xmu Xt X11
|
14
|
+
|
15
|
+
or, under X11R6:
|
16
|
+
|
17
|
+
Xaw Xmu Xt X11 SM ICE Xext
|
18
|
+
|
19
|
+
You can run "xcurses-config --libs" to show the link parameters for your
|
20
|
+
system. If using dynamic linking, on some systems, "-lXCurses" suffices.
|
21
|
+
|
22
|
+
By calling Xinitscr() rather than initscr(), you can pass your program
|
23
|
+
name and resource overrides to PDCurses. The program name is used as the
|
24
|
+
title of the X window, and for defining X resources specific to your
|
25
|
+
program.
|
26
|
+
|
27
|
+
|
28
|
+
Interaction with stdio
|
29
|
+
----------------------
|
30
|
+
|
31
|
+
Be aware that curses programs that expect to have a normal tty
|
32
|
+
underneath them will be very disappointed! Output directed to stdout
|
33
|
+
will go to the xterm that invoked the PDCurses application, or to the
|
34
|
+
console if not invoked directly from an xterm. Similarly, stdin will
|
35
|
+
expect its input from the same place as stdout.
|
36
|
+
|
37
|
+
|
38
|
+
X Resources
|
39
|
+
-----------
|
40
|
+
|
41
|
+
PDCurses for X11 recognizes the following resources:
|
42
|
+
|
43
|
+
### lines
|
44
|
+
|
45
|
+
Specifies the number of lines the "screen" will have. Directly equates
|
46
|
+
to LINES. There is no theoretical maximum. The minimum value must be 2.
|
47
|
+
Default: 24
|
48
|
+
|
49
|
+
### cols
|
50
|
+
|
51
|
+
Specifies the number of columns the "screen" will have. Directly equates
|
52
|
+
to COLS. There is no theoretical maximum. The minimum value must be 2.
|
53
|
+
Default: 80
|
54
|
+
|
55
|
+
### normalFont
|
56
|
+
|
57
|
+
The name of a fixed width font. Default: 7x13
|
58
|
+
|
59
|
+
### italicFont
|
60
|
+
|
61
|
+
The name of a fixed width font to be used for characters with A_ITALIC
|
62
|
+
attributes. Must have the same cell size as normalFont. Default: 7x13
|
63
|
+
(obviously not an italic font)
|
64
|
+
|
65
|
+
### pointer
|
66
|
+
|
67
|
+
The name of a valid pointer cursor. Default: xterm
|
68
|
+
|
69
|
+
### pointerForeColor
|
70
|
+
|
71
|
+
The foreground color of the pointer. Default: black
|
72
|
+
|
73
|
+
### pointerBackColor
|
74
|
+
|
75
|
+
The background color of the pointer. Default: white
|
76
|
+
|
77
|
+
### cursorColor
|
78
|
+
|
79
|
+
### textCursor
|
80
|
+
|
81
|
+
The alignment of the text cursor; horizontal or vertical. Default:
|
82
|
+
horizontal
|
83
|
+
|
84
|
+
### colorBlack
|
85
|
+
|
86
|
+
The color of the COLOR_BLACK attribute. Default: Black
|
87
|
+
|
88
|
+
### colorRed
|
89
|
+
|
90
|
+
The color of the COLOR_RED attribute. Default: red3
|
91
|
+
|
92
|
+
### colorGreen
|
93
|
+
|
94
|
+
The color of the COLOR_GREEN attribute. Default: green3
|
95
|
+
|
96
|
+
### colorYellow
|
97
|
+
|
98
|
+
The color of the COLOR_YELLOW attribute. Default: yellow3
|
99
|
+
|
100
|
+
### colorBlue
|
101
|
+
|
102
|
+
The color of the COLOR_BLUE attribute. Default: blue3
|
103
|
+
|
104
|
+
### colorMagenta
|
105
|
+
|
106
|
+
The color of the COLOR_MAGENTA attribute. Default: magenta3
|
107
|
+
|
108
|
+
### colorCyan
|
109
|
+
|
110
|
+
The color of the COLOR_CYAN attribute. Default: cyan3
|
111
|
+
|
112
|
+
### colorWhite
|
113
|
+
|
114
|
+
The color of the COLOR_WHITE attribute. Default: Grey
|
115
|
+
|
116
|
+
### colorBoldBlack
|
117
|
+
|
118
|
+
COLOR_BLACK combined with A_BOLD. Default: grey40
|
119
|
+
|
120
|
+
### colorBoldRed
|
121
|
+
|
122
|
+
COLOR_RED combined with A_BOLD. Default: red1
|
123
|
+
|
124
|
+
### colorBoldGreen
|
125
|
+
|
126
|
+
COLOR_GREEN combined with A_BOLD. Default: green1
|
127
|
+
|
128
|
+
### colorBoldYellow
|
129
|
+
|
130
|
+
COLOR_YELLOW combined with A_BOLD. Default: yellow1
|
131
|
+
|
132
|
+
### colorBoldBlue
|
133
|
+
|
134
|
+
COLOR_BLUE combined with A_BOLD. Default: blue1
|
135
|
+
|
136
|
+
### colorBoldMagenta
|
137
|
+
|
138
|
+
COLOR_MAGENTA combined with A_BOLD. Default: magenta1
|
139
|
+
|
140
|
+
### colorBoldCyan
|
141
|
+
|
142
|
+
COLOR_CYAN combined with A_BOLD. Default: cyan1
|
143
|
+
|
144
|
+
### colorBoldWhite
|
145
|
+
|
146
|
+
COLOR_WHITE combined with A_BOLD. Default: White
|
147
|
+
|
148
|
+
### bitmap
|
149
|
+
|
150
|
+
The name of a valid bitmap file of depth 1 (black and white) used for
|
151
|
+
the application's icon. The file is an X bitmap. Default: a 32x32 or
|
152
|
+
64x64 pixmap depending on the window manager
|
153
|
+
|
154
|
+
### pixmap
|
155
|
+
|
156
|
+
The name of a valid pixmap file of any depth supported by the window
|
157
|
+
manager (color) for the application's icon, The file is an X11 pixmap.
|
158
|
+
This resource is only available if the libXpm package has been installed
|
159
|
+
(most systems have this by default). This resource overrides the
|
160
|
+
"bitmap" resource. Default: none, uses default bitmap above
|
161
|
+
|
162
|
+
### translations
|
163
|
+
|
164
|
+
Translations enable the user to customize the action that occurs when a
|
165
|
+
key, combination of keys, or a button is pressed. The translations are
|
166
|
+
similar to those used by xterm.
|
167
|
+
|
168
|
+
Defaults:
|
169
|
+
|
170
|
+
<Key>: XCursesKeyPress()
|
171
|
+
<KeyUp>: XCursesKeyPress()
|
172
|
+
<BtnDown>: XCursesButton()
|
173
|
+
<BtnUp>: XCursesButton()
|
174
|
+
<BtnMotion>: XCursesButton()
|
175
|
+
|
176
|
+
The most useful action for KeyPress translations is string(). The
|
177
|
+
argument to the string() action can be either a string or a hex
|
178
|
+
representation of a character; e.g., string(0x1b) will send the ASCII
|
179
|
+
escape character to the application; string("[11~") will send [ 1 1 ~ ,
|
180
|
+
as separate keystrokes.
|
181
|
+
|
182
|
+
### shmmin
|
183
|
+
|
184
|
+
On most systems, there are two Unix kernel parameters that determine the
|
185
|
+
allowable size of a shared memory segment. These parameters are usually
|
186
|
+
something like SHMMIN and SHMMAX. To use shared memory, a program must
|
187
|
+
allocate a segment of shared memory that is between these two values.
|
188
|
+
Usually these values are like 1 for SHMMIN and some large number for
|
189
|
+
SHMMAX. Sometimes the Unix kernel is configured to have a value of
|
190
|
+
SHMMIN that is bigger than the size of one of the shared memory segments
|
191
|
+
that libXCurses uses. On these systems an error message like:
|
192
|
+
|
193
|
+
Cannot allocate shared memory for SCREEN: Invalid argument
|
194
|
+
|
195
|
+
will result. To overcome this problem, this resource should be set to
|
196
|
+
the kernel value for SHMMIN. This ensures that a shared memory segment
|
197
|
+
will always be bigger than the kernel value for SHMMIN (and hopefully
|
198
|
+
less than SHMMAX!) Default: 0
|
199
|
+
|
200
|
+
### borderColor
|
201
|
+
|
202
|
+
The color of the border around the screen. Default: black
|
203
|
+
|
204
|
+
### borderWidth
|
205
|
+
|
206
|
+
The width in pixels of the border around the screen. Default: 0
|
207
|
+
|
208
|
+
### clickPeriod
|
209
|
+
|
210
|
+
The period (in milliseconds) between a button press and a button release
|
211
|
+
that determines if a click of a button has occurred. Default: 100
|
212
|
+
|
213
|
+
### doubleClickPeriod
|
214
|
+
|
215
|
+
The period (in milliseconds) between two button press events that
|
216
|
+
determines if a double click of a button has occurred. Default: 200
|
217
|
+
|
218
|
+
### composeKey
|
219
|
+
|
220
|
+
The name of the X key that defines the "compose key", which is used to
|
221
|
+
enter characters in the Latin-1 character set above 0xA0. (See "Compose
|
222
|
+
Keys for Latin-1" below.) This is used only when PDCurses is built
|
223
|
+
without XIM support. While in compose mode, the text cursor will appear
|
224
|
+
as a hollow rectangle. Default: Multi_key
|
225
|
+
|
226
|
+
|
227
|
+
Using Resources
|
228
|
+
---------------
|
229
|
+
|
230
|
+
All applications have a top-level class name of "XCurses". If Xinitscr()
|
231
|
+
is used, it sets an application's top-level widget name. (Otherwise the
|
232
|
+
name defaults to "PDCurses".)
|
233
|
+
|
234
|
+
Examples for app-defaults or .Xdefaults:
|
235
|
+
|
236
|
+
!
|
237
|
+
! resources for XCurses class of programs
|
238
|
+
!
|
239
|
+
XCurses*lines: 30
|
240
|
+
XCurses*cols: 80
|
241
|
+
XCurses*normalFont: 9x13
|
242
|
+
XCurses*bitmap: /tmp/xcurses.xbm
|
243
|
+
XCurses*pointer: top_left_arrow
|
244
|
+
!
|
245
|
+
! resources for testcurs - XCurses
|
246
|
+
!
|
247
|
+
testcurs.colorRed: orange
|
248
|
+
testcurs.colorBlack: midnightblue
|
249
|
+
testcurs.lines: 25
|
250
|
+
*testcurs.Translations: #override \n \
|
251
|
+
<Key>F12: string(0x1b) string("[11~") \n
|
252
|
+
!
|
253
|
+
! resources for THE - XCurses
|
254
|
+
!
|
255
|
+
! resources with the * wildcard can be overridden by a parameter passed
|
256
|
+
! to initscr()
|
257
|
+
!
|
258
|
+
the*normalFont: 9x15
|
259
|
+
the*lines: 40
|
260
|
+
the*cols: 86
|
261
|
+
the*pointer: xterm
|
262
|
+
the*pointerForeColor: white
|
263
|
+
the*pointerBackColor: black
|
264
|
+
!
|
265
|
+
! resources with the . format can not be overridden by a parameter passed
|
266
|
+
! to Xinitscr()
|
267
|
+
!
|
268
|
+
the.bitmap: /home/mark/the/the64.xbm
|
269
|
+
the.pixmap: /home/mark/the/the64.xpm
|
270
|
+
|
271
|
+
Resources may also be passed as parameters to the Xinitscr() function.
|
272
|
+
Parameters are strings in the form of switches; e.g., to set the color
|
273
|
+
"red" to "indianred", and the number of lines to 30, the string passed
|
274
|
+
to Xinitscr would be: "-colorRed indianred -lines 30"
|
275
|
+
|
276
|
+
|
277
|
+
Compose Keys for Latin-1
|
278
|
+
------------------------
|
279
|
+
|
280
|
+
When built without XIM support, PDCurses for X11 provides its own,
|
281
|
+
limited compose key system for Latin-1 characters. The available
|
282
|
+
combinations are listed here. For a given character, any of the
|
283
|
+
combinations shown in the last column may be used. To generate a
|
284
|
+
character, press the "compose" key followed by one of the pairs of
|
285
|
+
keystrokes. Where no key is evident, the spacebar is used. Thus, to
|
286
|
+
generate the NO-BREAK SPACE, press the "compose" key followed by two
|
287
|
+
hits of the spacebar.
|
288
|
+
|
289
|
+
With a typical modern X server, you can get many more compose key
|
290
|
+
combinations by using XIM instead. Configure PDCurses with --enable-xim
|
291
|
+
to use XIM support.
|
292
|
+
|
293
|
+
This document is encoded in UTF-8.
|
294
|
+
|
295
|
+
Hex| Dec |Chr| Description ISO 10646-1:1993(E) | Compose key combinations
|
296
|
+
---+-----+---+---------------------------------+-------------------------
|
297
|
+
A0 | 160 | | NO-BREAK SPACE |
|
298
|
+
A1 | 161 | ¡ | INVERTED EXCLAMATION MARK | ! !!
|
299
|
+
A2 | 162 | ¢ | CENT SIGN | c| |c c/ c$ C$ C|
|
300
|
+
A3 | 163 | £ | POUND SIGN | L- L$ L= l- l$ l= |-
|
301
|
+
A4 | 164 | ¤ | CURRENCY SIGN | xo ox XO g$
|
302
|
+
A5 | 165 | ¥ | YEN SIGN | =y y= =Y Y= Y- y$ y-
|
303
|
+
A6 | 166 | ¦ | BROKEN BAR | | || vb VB |^
|
304
|
+
A7 | 167 | § | SECTION SIGN | SO SS s! S! so
|
305
|
+
A8 | 168 | ¨ | DIAERESIS | " ""
|
306
|
+
A9 | 169 | © | COPYRIGHT SIGN | CO co OC
|
307
|
+
AA | 170 | ª | FEMININE ORDINAL INDICATOR | sa SA a_ A_
|
308
|
+
AB | 171 | « | LEFT DOUBLE ANGLE QUOTES | <<
|
309
|
+
AC | 172 | ¬ | NOT SIGN | -, no NO
|
310
|
+
AD | 173 | | SOFT HYPHEN | - --
|
311
|
+
AE | 174 | ® | REGISTERED SIGN | RO ro OR
|
312
|
+
AF | 175 | ¯ | MACRON | -^ _^ __
|
313
|
+
B0 | 176 | ° | DEGREE SIGN | o 0^ 0* de DE ^0
|
314
|
+
B1 | 177 | ± | PLUS-MINUS SIGN | -+ +-
|
315
|
+
B2 | 178 | ² | SUPERSCRIPT TWO | 2 2^ s2 ^2
|
316
|
+
B3 | 179 | ³ | SUPERSCRIPT THREE | 3 3^ s3 ^3
|
317
|
+
B4 | 180 | ´ | ACUTE ACCENT | ' ''
|
318
|
+
B5 | 181 | µ | MICRO SIGN | u /u /U *m *M
|
319
|
+
B6 | 182 | ¶ | PILCROW SIGN | p! P! pg PG
|
320
|
+
B7 | 183 | · | MIDDLE DOT | . .^ ..
|
321
|
+
B8 | 184 | ¸ | CEDILLA | , ,,
|
322
|
+
B9 | 185 | ¹ | SUPERSCRIPT ONE | 1 1^ s1 ^1
|
323
|
+
BA | 186 | º | MASCULINE ORDINAL INDICATOR | o_ s0 S0
|
324
|
+
BB | 187 | » | RIGHT DOUBLE ANGLE QUOTES | >>
|
325
|
+
BC | 188 | ¼ | VULGAR FRACTION ONE QUARTER | 14
|
326
|
+
BD | 189 | ½ | VULGAR FRACTION ONE HALF | 12
|
327
|
+
BE | 190 | ¾ | VULGAR FRACTION THREE QUARTERS | 34
|
328
|
+
BF | 191 | ¿ | INVERTED QUESTION MARK | ? ??
|
329
|
+
C0 | 192 | À | CAPITAL A WITH GRAVE ACCENT | `A A`
|
330
|
+
C1 | 193 | Á | CAPITAL A WITH ACUTE ACCENT | 'A A'
|
331
|
+
C2 | 194 | Â | CAPITAL A WITH CIRCUMFLEX ACCENT| ^A A^ A>
|
332
|
+
C3 | 195 | Ã | CAPITAL A WITH TILDE | ~A A~ A-
|
333
|
+
C4 | 196 | Ä | CAPITAL A WITH DIAERESIS | "A A"
|
334
|
+
C5 | 197 | Å | CAPITAL A WITH RING ABOVE | oA Ao A* OA *A
|
335
|
+
C6 | 198 | Æ | CAPITAL LIGATURE AE | AE
|
336
|
+
C7 | 199 | Ç | CAPITAL C WITH CEDILLA | ,C C,
|
337
|
+
C8 | 200 | È | CAPITAL E WITH GRAVE ACCENT | `E E`
|
338
|
+
C9 | 201 | É | CAPITAL E WITH ACUTE ACCENT | 'E E'
|
339
|
+
CA | 202 | Ê | CAPITAL E WITH CIRCUMFLEX ACCENT| ^E E^ E>
|
340
|
+
CB | 203 | Ë | CAPITAL E WITH DIAERESIS | "E E"
|
341
|
+
CC | 204 | Ì | CAPITAL I WITH GRAVE ACCENT | `I I`
|
342
|
+
CD | 205 | Í | CAPITAL I WITH ACUTE ACCENT | 'I I'
|
343
|
+
CE | 206 | Î | CAPITAL I WITH CIRCUMFLEX ACCENT| ^I I^ I>
|
344
|
+
CF | 207 | Ï | CAPITAL I WITH DIAERESIS | "I I"
|
345
|
+
D0 | 208 | Ð | CAPITAL ETH | D-
|
346
|
+
D1 | 209 | Ñ | CAPITAL N WITH TILDE | ~N N~ N-
|
347
|
+
D2 | 210 | Ò | CAPITAL O WITH GRAVE ACCENT | `O O`
|
348
|
+
D3 | 211 | Ó | CAPITAL O WITH ACUTE ACCENT | 'O O'
|
349
|
+
D4 | 212 | Ô | CAPITAL O WITH CIRCUMFLEX ACCENT| ^O O^ O>
|
350
|
+
D5 | 213 | Õ | CAPITAL O WITH TILDE | ~O O~ O-
|
351
|
+
D6 | 214 | Ö | CAPITAL O WITH DIAERESIS | "O O"
|
352
|
+
D7 | 215 | × | MULTIPLICATION SIGN | x xx XX mu MU
|
353
|
+
D8 | 216 | Ø | CAPITAL O WITH STROKE | /O O/
|
354
|
+
D9 | 217 | Ù | CAPITAL U WITH GRAVE ACCENT | `U U`
|
355
|
+
DA | 218 | Ú | CAPITAL U WITH ACUTE ACCENT | 'U U'
|
356
|
+
DB | 219 | Û | CAPITAL U WITH CIRCUMFLEX ACCENT| ^U U^ U>
|
357
|
+
DC | 220 | Ü | CAPITAL U WITH DIAERESIS | "U U"
|
358
|
+
DD | 221 | Ý | CAPITAL Y WITH ACUTE ACCENT | 'Y Y'
|
359
|
+
DE | 222 | Þ | CAPITAL THORN | P TH |P
|
360
|
+
DF | 223 | ß | SMALL SHARP S | ss
|
361
|
+
E0 | 224 | à | SMALL A WITH GRAVE ACCENT | `a a`
|
362
|
+
E1 | 225 | á | SMALL A WITH ACUTE ACCENT | 'a a'
|
363
|
+
E2 | 226 | â | SMALL A WITH CIRCUMFLEX ACCENT | ^a a^ a>
|
364
|
+
E3 | 227 | ã | SMALL A WITH TILDE | ~a a~ a-
|
365
|
+
E4 | 228 | ä | SMALL A WITH DIAERESIS | "a a"
|
366
|
+
E5 | 229 | å | SMALL A WITH RING ABOVE | oa ao Oa a* *a
|
367
|
+
E6 | 230 | æ | SMALL LIGATURE AE | ae
|
368
|
+
E7 | 231 | ç | SMALL C WITH CEDILLA | ,c c,
|
369
|
+
E8 | 232 | è | SMALL E WITH GRAVE ACCENT | `e e`
|
370
|
+
E9 | 233 | é | SMALL E WITH ACUTE ACCENT | 'e e'
|
371
|
+
EA | 234 | ê | SMALL E WITH CIRCUMFLEX ACCENT | ^e e^ e>
|
372
|
+
EB | 235 | ë | SMALL E WITH DIAERESIS | "e e"
|
373
|
+
EC | 236 | ì | SMALL I WITH GRAVE ACCENT | `i i`
|
374
|
+
ED | 237 | í | SMALL I WITH ACUTE ACCENT | 'i i'
|
375
|
+
EE | 238 | î | SMALL I WITH CIRCUMFLEX ACCENT | ^i i^ i>
|
376
|
+
EF | 239 | ï | SMALL I WITH DIAERESIS | "i i"
|
377
|
+
F0 | 240 | ð | SMALL ETH | d-
|
378
|
+
F1 | 241 | ñ | SMALL N WITH TILDE | ~n n~ n-
|
379
|
+
F2 | 242 | ò | SMALL O WITH GRAVE ACCENT | `o o`
|
380
|
+
F3 | 243 | ó | SMALL O WITH ACUTE ACCENT | 'o o'
|
381
|
+
F4 | 244 | ô | SMALL O WITH CIRCUMFLEX ACCENT | ^o o^ o>
|
382
|
+
F5 | 245 | õ | SMALL O WITH TILDE | ~o o~ o-
|
383
|
+
F6 | 246 | ö | SMALL O WITH DIAERESIS | "o o"
|
384
|
+
F7 | 247 | ÷ | DIVISION SIGN | -: :-
|
385
|
+
F8 | 248 | ø | SMALL O WITH OBLIQUE BAR | /o o/
|
386
|
+
F9 | 249 | ù | SMALL U WITH GRAVE ACCENT | `u u`
|
387
|
+
FA | 250 | ú | SMALL U WITH ACUTE ACCENT | 'u u'
|
388
|
+
FB | 251 | û | SMALL U WITH CIRCUMFLEX ACCENT | ^u u^ u>
|
389
|
+
FC | 252 | ü | SMALL U WITH DIAERESIS | "u u"
|
390
|
+
FD | 253 | ý | SMALL Y WITH ACUTE ACCENT | 'y y'
|
391
|
+
FE | 254 | þ | SMALL THORN | p th |p
|
392
|
+
FF | 255 | ÿ | SMALL Y WITH DIAERESIS | "y y"
|
393
|
+
|
394
|
+
|
395
|
+
Deprecated
|
396
|
+
----------
|
397
|
+
|
398
|
+
XCursesProgramName is no longer used. To set the program name, you must
|
399
|
+
use Xinitscr(), or PDC_set_title() to set just the window title.
|
400
|
+
|
401
|
+
The XCursesExit() function is now called automatically via atexit().
|
402
|
+
(Multiple calls to it are OK, so you don't need to remove it if you've
|
403
|
+
already added it for previous versions of PDCurses.)
|
404
|
+
|
405
|
+
XCURSES is no longer defined automatically, but need not be defined,
|
406
|
+
unless you want the X11-specific prototypes. (Normal curses programs
|
407
|
+
won't need it.)
|