Source files need to stay 7-bit ASCII. You could include the Unicode symbol names in a comment instead.


-------- Original message --------
From: Marcel Partap <mpartap@gmx.net>
Date: 27/10/2013 22:37 (GMT+00:00)
To: tmux-users@lists.sourceforge.net
Subject: [PATCH 4/4] Show how VT100 ACS (alternate character set) should actually render.


---
screen-redraw.c |  2 ++
tty-acs.c       | 64 ++++++++++++++++++++++++++++-----------------------------
2 files changed, 34 insertions(+), 32 deletions(-)

diff --git a/screen-redraw.c b/screen-redraw.c
index 1af1bb1..9e387c3 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -44,6 +44,7 @@ void screen_redraw_draw_number(struct client *, struct window_pane *);
#define CELL_OUTSIDE 12

#define CELL_BORDERS " xqlkmjwvtun~"
+                    /* │─┌┐└┘┬┴├┤┼· */

#define BORDER_NOT 0
#define BORDER_LEFT 1
@@ -52,6 +53,7 @@ void screen_redraw_draw_number(struct client *, struct window_pane *);
#define BORDER_BOTTOM 8

#define BORDER_MARKERS " +, .   -"
+                      /* →← ↑   ↓ */

/* Check if cell is on border of given pane and how it relates to it. */
int
diff --git a/tty-acs.c b/tty-acs.c
index e85888c..c909978 100644
--- a/tty-acs.c
+++ b/tty-acs.c
@@ -30,38 +30,38 @@ struct tty_acs_entry {
const char *string;
};
const struct tty_acs_entry tty_acs_table[] = {
- { '+', "\342\206\222" },
- { ',', "\342\206\220" },
- { '-', "\342\206\221" },
- { '.', "\342\206\223" },
- { '0', "\342\226\256" },
- { '`', "\342\227\206" },
- { 'a', "\342\226\222" },
- { 'f', "\302\260" },
- { 'g', "\302\261" },
- { 'h', "\342\226\222" },
- { 'i', "\342\230\203" },
- { 'j', "\342\224\230" },
- { 'k', "\342\224\220" },
- { 'l', "\342\224\214" },
- { 'm', "\342\224\224" },
- { 'n', "\342\224\274" },
- { 'o', "\342\216\272" },
- { 'p', "\342\216\273" },
- { 'q', "\342\224\200" },
- { 'r', "\342\216\274" },
- { 's', "\342\216\275" },
- { 't', "\342\224\234" },
- { 'u', "\342\224\244" },
- { 'v', "\342\224\264" },
- { 'w', "\342\224\254" },
- { 'x', "\342\224\202" },
- { 'y', "\342\211\244" },
- { 'z', "\342\211\245" },
- { '{', "\317\200" },
- { '|', "\342\211\240" },
- { '}', "\302\243" },
- { '~', "\302\267" }
+ { '+', "\342\206\222" }, /* → */
+ { ',', "\342\206\220" }, /* ← */
+ { '-', "\342\206\221" }, /* ↑ */
+ { '.', "\342\206\223" }, /* ↓ */
+ { '0', "\342\226\256" }, /* ▮ */
+ { '`', "\342\227\206" }, /* ◆ */
+ { 'a', "\342\226\222" }, /* ▒ */
+ { 'f', "\302\260" },     /* ° */
+ { 'g', "\302\261" },     /* ± */
+ { 'h', "\342\226\222" }, /* ▒ */
+ { 'i', "\342\230\203" }, /* ☃ */
+ { 'j', "\342\224\230" }, /* ┘ */
+ { 'k', "\342\224\220" }, /* ┐ */
+ { 'l', "\342\224\214" }, /* ┌ */
+ { 'm', "\342\224\224" }, /* └ */
+ { 'n', "\342\224\274" }, /* ┼ */
+ { 'o', "\342\216\272" }, /* ⎺ */
+ { 'p', "\342\216\273" }, /* ⎻ */
+ { 'q', "\342\224\200" }, /* ─ */
+ { 'r', "\342\216\274" }, /* ⎼ */
+ { 's', "\342\216\275" }, /* ⎽ */
+ { 't', "\342\224\234" }, /* ├ */
+ { 'u', "\342\224\244" }, /* ┤ */
+ { 'v', "\342\224\264" }, /* ┴ */
+ { 'w', "\342\224\254" }, /* ┬ */
+ { 'x', "\342\224\202" }, /* │ */
+ { 'y', "\342\211\244" }, /* ≤ */
+ { 'z', "\342\211\245" }, /* ≥ */
+ { '{', "\317\200" },     /* π */
+ { '|', "\342\211\240" }, /* ≠ */
+ { '}', "\302\243" },     /* £ */
+ { '~', "\302\267" }      /* · */
};

int
--
1.8.4


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users