Browse Source

merge latest CLI example bugfixes into the HTML versions

tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 years ago
parent
commit
995edf8021
2 changed files with 9 additions and 9 deletions
  1. +4
    -4
      caca-php/examples/www/colors.php
  2. +5
    -5
      caca-php/examples/www/export.php

+ 4
- 4
caca-php/examples/www/colors.php View File

@@ -52,13 +52,13 @@ for($i = 0; $i < 16; $i++)

caca_set_color_ansi($cv, CACA_LIGHTGRAY, CACA_BLACK);
caca_put_str($cv, 3, 20, "This is bold This is blink This is italics This is underline");
caca_set_attr($cv, CACA_BOLD, CACA_DEFAULT);
caca_set_attr($cv, CACA_BOLD);
caca_put_str($cv, 3 + 8, 20, "bold");
caca_set_attr($cv, CACA_BLINK, CACA_DEFAULT);
caca_set_attr($cv, CACA_BLINK);
caca_put_str($cv, 3 + 24, 20, "blink");
caca_set_attr($cv, CACA_ITALICS, CACA_DEFAULT);
caca_set_attr($cv, CACA_ITALICS);
caca_put_str($cv, 3 + 41, 20, "italics");
caca_set_attr($cv, CACA_UNDERLINE, CACA_DEFAULT);
caca_set_attr($cv, CACA_UNDERLINE);
caca_put_str($cv, 3 + 60, 20, "underline");

echo caca_export_string($cv, "html3");


+ 5
- 5
caca-php/examples/www/export.php View File

@@ -157,15 +157,15 @@ else
caca_put_str($cv, WIDTH / 2 - 7, HEIGHT / 2 + 2, "äβç ░▒▓█▓▒░ ΔЗҒ");
caca_put_str($cv, WIDTH / 2 - 5, HEIGHT / 2 + 4, "(\") \\o/ <&>");

caca_set_attr($cv, CACA_BOLD, CACA_DEFAULT);
caca_set_attr($cv, CACA_BOLD);
caca_put_str($cv, WIDTH / 2 - 16, HEIGHT / 2 + 3, "Bold");
caca_set_attr($cv, CACA_BLINK, CACA_DEFAULT);
caca_set_attr($cv, CACA_BLINK);
caca_put_str($cv, WIDTH / 2 - 9, HEIGHT / 2 + 3, "Blink");
caca_set_attr($cv, CACA_ITALICS, CACA_DEFAULT);
caca_set_attr($cv, CACA_ITALICS);
caca_put_str($cv, WIDTH / 2 - 1, HEIGHT / 2 + 3, "Italics");
caca_set_attr($cv, CACA_UNDERLINE, CACA_DEFAULT);
caca_set_attr($cv, CACA_UNDERLINE);
caca_put_str($cv, WIDTH / 2 + 8, HEIGHT / 2 + 3, "Underline");
caca_set_attr($cv, 0, CACA_DEFAULT);
caca_set_attr($cv, 0);

caca_set_color_ansi($cv, CACA_WHITE, CACA_LIGHTBLUE);
caca_put_str($cv, WIDTH / 2 - 7, HEIGHT / 2, " LIBCACA ");


Loading…
Cancel
Save