diff options
author | bapt <bapt@FreeBSD.org> | 2010-11-22 19:37:25 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2010-11-22 19:37:25 +0800 |
commit | c4fc3dd452a592bdfdc7fb02b93321aa0b0a4724 (patch) | |
tree | cae48a651e5b728f91f244dc2f1c88cd14a6290b /devel/cdk | |
parent | 369d160ce07a86d9b9b80b6ba7a90d61de19190c (diff) | |
download | freebsd-ports-gnome-c4fc3dd452a592bdfdc7fb02b93321aa0b0a4724.tar.gz freebsd-ports-gnome-c4fc3dd452a592bdfdc7fb02b93321aa0b0a4724.tar.zst freebsd-ports-gnome-c4fc3dd452a592bdfdc7fb02b93321aa0b0a4724.zip |
- fix example in cdk_display(3)
PR: ports/149725
Submitted by: Loic Pefferkorn <loic-freebsd _at_ loicp.eu>
Diffstat (limited to 'devel/cdk')
-rw-r--r-- | devel/cdk/files/patch-man__cdk_display.3 | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/devel/cdk/files/patch-man__cdk_display.3 b/devel/cdk/files/patch-man__cdk_display.3 new file mode 100644 index 000000000000..24df4e12b1f9 --- /dev/null +++ b/devel/cdk/files/patch-man__cdk_display.3 @@ -0,0 +1,99 @@ +--- ./man/cdk_display.3.orig 2006-04-17 12:45:02.000000000 +0200 ++++ ./man/cdk_display.3 2010-11-22 12:30:11.667537601 +0100 +@@ -54,7 +54,7 @@ + .nf + .ce + \fI----------------------------------------\fR +-#include <cdk.h> ++#include <cdk/cdk.h> + + void main() + { +@@ -66,11 +66,13 @@ + /* Initialize the Cdk screen. */ + screen = initscr(); + cdkscreen = initCDKScreen (screen); ++ /* Start CDK Colors */ ++ initCDKColor(); + + /* Set the labels up. */ +- mesg[0] = "</1>This line should have a yellow foreground and a blue background.<!1>"; +- mesg[1] = "</2>This line should have a white foreground and a blue background.<!2>"; +- mesg[2] = "</3>This line should have a yellow foreground and a red background.<!3>"; ++ mesg[0] = "</31>This line should have a yellow foreground and a blue background.<!31>"; ++ mesg[1] = "</05>This line should have a white foreground and a blue background.<!05>"; ++ mesg[2] = "</26>This line should have a yellow foreground and a red background.<!26>"; + mesg[3] = "<C>This line should be set to whatever the screen default is."; + + /* Declare the labels. */ +@@ -121,7 +123,7 @@ + .nf + .ce + \fI----------------------------------------\fR +-#include <cdk.h> ++#include <cdk/cdk.h> + + void main() + { +@@ -133,11 +135,13 @@ + /* Initialize the Cdk screen. */ + screen = initscr(); + cdkscreen = initCDKScreen (screen); ++ /* Start CDK Colors */ ++ initCDKColor(); + + /* Set the labels up. */ +- mesg[0] = "</B/1>Bold text yellow foreground / blue background.<!1>"; +- mesg[1] = "</U/2>Underlined text white foreground / blue background.<!2>"; +- mesg[2] = "</K/3>Blinking text yellow foreground / red background.<!3>"; ++ mesg[0] = "</B/31>Bold text yellow foreground / blue background.<!31>"; ++ mesg[1] = "</U/05>Underlined text white foreground / blue background.<!05>"; ++ mesg[2] = "</K/26>Blinking text yellow foreground / red background.<!26>"; + mesg[3] = "<C>This line uses the screen default colors."; + + /* Declare the labels. */ +@@ -190,7 +194,7 @@ + .ce + \fI----------------------------------------\fR + .nf +-#include <cdk.h> ++#include <cdk/cdk.h> + + void main() + { +@@ -202,10 +206,12 @@ + /* Initialize the Cdk screen. */ + screen = initscr(); + cdkscreen = initCDKScreen (screen); ++ /* Start CDK Colors */ ++ initCDKColor(); + + /* Set the labels up. */ +- mesg[0] = "<R></B/1>This line should have a yellow foreground and a blue background.<!1>"; +- mesg[1] = "</U/2>This line should have a white foreground and a blue background.<!2>"; ++ mesg[0] = "<R></B/31>This line should have a yellow foreground and a blue background.<!31>"; ++ mesg[1] = "</U/05>This line should have a white foreground and a blue background.<!05>"; + mesg[2] = "<B=+>This is a bullet."; + mesg[3] = "<I=10>This is indented 10 characters."; + mesg[4] = "<C>This line should be set to whatever the screen default is."; +@@ -295,7 +301,7 @@ + .ce + \fI----------------------------------------\fR + .nf +-#include "cdk.h" ++#include <cdk/cdk.h> + + void main() + { +@@ -313,9 +319,9 @@ + initCDKColor(); + + /* Set the labels up. */ +- mesg[0] = "<C><#UL><#HL(25)><#UR>"; ++ mesg[0] = "<C><#UL><#HL(26)><#UR>"; + mesg[1] = "<C><#VL></R>This text should be boxed.<!R><#VL>"; +- mesg[2] = "<C><#LL><#HL(25)><#LR>"; ++ mesg[2] = "<C><#LL><#HL(26)><#LR>"; + mesg[3] = "<C>While this is not."; + + /* Declare the labels. */ |