Skip to content

Commit 1cc01e4

Browse files
committed
Revised chtype layout grids to be markdown-friendly, a la wmcbrine/PDCurses@26f39dec9 (except we have a couple more tables that needed reformatting)
1 parent 7cc0f0d commit 1cc01e4

2 files changed

Lines changed: 29 additions & 25 deletions

File tree

curses.h

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -408,30 +408,32 @@ have bits devoted to character data, attribute data, and color pair data.
408408
There are three configurations supported :
409409
410410
Default, 64-bit chtype, both wide- and 8-bit character builds:
411-
-------------------------------------------------------------------------------
412-
|63|62|..|45|44|43|..|38|37|36|35|34|33|..|22|21|20|19|18|17|16|..| 3| 2| 1| 0|
413-
-------------------------------------------------------------------------------
414-
| color pair | unused | modifiers | character eg 'a'
411+
412+
color pair | unused | modifiers | character eg 'a'
413+
--------------|--------|-----------------------|--------------------
414+
63 62 .. 45 44|43 .. 39|37 36 35 .. 22 21|20 19 18 .. 3 2 1 0
415415
416416
21 character bits (0-20), enough for full Unicode coverage
417417
17 attribute bits (21-37)
418418
6 currently unused bits (38-43)
419419
20 color pair bits (44-63), enough for 1048576 color pairs
420420
421421
32-bit chtypes with wide characters (CHTYPE_32 and PDC_WIDE are #defined):
422-
+--------------------------------------------------------------------+
423-
|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|..| 2| 1| 0|
424-
+--------------------------------------------------------------------+
425-
color pair | modifiers | character eg 'a'
422+
423+
color pair | modifiers | character eg 'a'
424+
-----------------|-----------------------|--------------------
425+
31 30 29 .. 25 24|23 22 21 20 19 18 17 16|15 14 13 .. 2 1 0
426+
426427
16 character bits (0-16), enough for BMP (Unicode below 64K)
427428
8 attribute bits (16-23)
428429
8 color pair bits (24-31), for 256 color pairs
429430
430431
32-bit chtypes with narrow characters (CHTYPE_32 #defined, PDC_WIDE is not):
431-
+--------------------------------------------------------------------+
432-
|31|30|29|28|..|22|21|20|19|18|17|16|..|12|11|10| 9| 8| 7| 6|..| 1| 0|
433-
+--------------------------------------------------------------------+
434-
color pair | modifiers |character
432+
433+
color pair | modifiers |character
434+
--------------------|---------------------|----------------
435+
31 30 29 .. 22 21 20|19 18 17 16 .. 10 9 8|7 6 5 4 3 2 1
436+
435437
8 character bits (0-7); only 8-bit charsets will work
436438
12 attribute bits (8-19)
437439
12 color pair bits (20-31), for 4096 pairs

docs/MANUAL.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,32 @@ have bits devoted to character data, attribute data, and color pair data.
3737
There are three configurations supported :
3838

3939
Default, 64-bit chtype, both wide- and 8-bit character builds:
40-
-------------------------------------------------------------------------------
41-
|63|62|..|45|44|43|..|38|37|36|35|34|33|..|22|21|20|19|18|17|16|..| 3| 2| 1| 0|
42-
-------------------------------------------------------------------------------
43-
| color pair | unused | modifiers | character eg 'a'
40+
41+
color pair | unused | modifiers | character eg 'a'
42+
--------------|--------|-----------------------|--------------------
43+
63 62 .. 45 44|43 .. 39|37 36 35 .. 22 21|20 19 18 .. 3 2 1 0
4444

4545
21 character bits (0-20), enough for full Unicode coverage
4646
17 attribute bits (21-37)
4747
6 currently unused bits (38-43)
4848
20 color pair bits (44-63), enough for 1048576 color pairs
4949

5050
32-bit chtypes with wide characters (CHTYPE_32 and PDC_WIDE are #defined):
51-
+--------------------------------------------------------------------+
52-
|31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|..| 2| 1| 0|
53-
+--------------------------------------------------------------------+
54-
color pair | modifiers | character eg 'a'
51+
52+
color pair | modifiers | character eg 'a'
53+
-----------------|-----------------------|--------------------
54+
31 30 29 .. 25 24|23 22 21 20 19 18 17 16|15 14 13 .. 2 1 0
55+
5556
16 character bits (0-16), enough for BMP (Unicode below 64K)
5657
8 attribute bits (16-23)
5758
8 color pair bits (24-31), for 256 color pairs
5859

5960
32-bit chtypes with narrow characters (CHTYPE_32 #defined, PDC_WIDE is not):
60-
+--------------------------------------------------------------------+
61-
|31|30|29|28|..|22|21|20|19|18|17|16|..|12|11|10| 9| 8| 7| 6|..| 1| 0|
62-
+--------------------------------------------------------------------+
63-
color pair | modifiers |character
61+
62+
color pair | modifiers |character
63+
--------------------|---------------------|----------------
64+
31 30 29 .. 22 21 20|19 18 17 16 .. 10 9 8|7 6 5 4 3 2 1
65+
6466
8 character bits (0-7); only 8-bit charsets will work
6567
12 attribute bits (8-19)
6668
12 color pair bits (20-31), for 4096 pairs
@@ -3127,7 +3129,7 @@ clipboard
31273129
memory returned, via PDC_freeclipboard(). The length of the clipboard
31283130
contents is returned in the length argument.
31293131

3130-
PDC_setclipboard copies the supplied text into the system's
3132+
PDC_setclipboard() copies the supplied text into the system's
31313133
clipboard, emptying the clipboard prior to the copy.
31323134

31333135
PDC_clearclipboard() clears the internal clipboard.

0 commit comments

Comments
 (0)