[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Double Height / Double width ..
From: |
Thomas Dickey |
Subject: |
Re: Double Height / Double width .. |
Date: |
Mon, 18 Nov 2013 19:15:35 -0500 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Nov 18, 2013 at 11:45:47AM -0700, address@hidden wrote:
> Ma trying to see if I can get UTF-8 Line Drawing characters to display in
> double height, double
>
> width:
>
> snippet of code for standard UTF
>
> wchar_t bboxcheck [] = { 0x2611, 0x00 } ;
> wchar_t bboxx [] = { 0x2612, 0x00 } ;
> wchar_t rightarrow1 [] = { 0x27a2 , 0x00 } ;
> wchar_t rightarrow2 [] = { 0x27a4 , 0x00 } ;
> wchar_t dashedc [] = { 0x2026 , 0x00 } ;
>
> ......
>
> mvprintw ( 10,2 , "R Arrow 1 Char is : " ) ;
> mvprintw ( 11,2 , "R Arrow 2 Char is : " ) ;
> mvaddwstr ( 10,30 ,rightarrow1 ) ;
> mvaddwstr ( 11,30 ,rightarrow2 ) ;
>
> Would like to get the 'arrows to display in a double height / width cell
> format in xterm.
>
> Is this possible, If so, what DO i need to do this ?
It should be possible. ncurses only "knows" that some characters have
double-width according to the wcwidth() function -- doesn't know about
double-height characters since there's no corresponding standard function.
With a complete (small) test-program, we could discuss whether it's working
as designed...
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature