Lines 1255-1260
Link Here
|
1255 |
|
1255 |
|
1256 |
#ifdef UTF8 |
1256 |
#ifdef UTF8 |
1257 |
typedef int SLsmg_Char_Type; |
1257 |
typedef int SLsmg_Char_Type; |
|
|
1258 |
extern SLtt_Char_Type SLcurses_Acs_Map [128]; |
1259 |
#define acs_map SLcurses_Acs_Map |
1258 |
#define SLSMG_EXTRACT_CHAR(x) ((x) & 0xFFFFFF) |
1260 |
#define SLSMG_EXTRACT_CHAR(x) ((x) & 0xFFFFFF) |
1259 |
#define SLSMG_EXTRACT_COLOR(x) (((x)>>24)&0xFF) |
1261 |
#define SLSMG_EXTRACT_COLOR(x) (((x)>>24)&0xFF) |
1260 |
#define SLSMG_BUILD_CHAR(ch,color) (((SLsmg_Char_Type)(wchar_t)(ch))|((color)<<24)) |
1262 |
#define SLSMG_BUILD_CHAR(ch,color) (((SLsmg_Char_Type)(wchar_t)(ch))|((color)<<24)) |
Lines 1396-1402
Link Here
|
1396 |
extern void SLsmg_set_screen_start (int *, int *); |
1398 |
extern void SLsmg_set_screen_start (int *, int *); |
1397 |
extern void SLsmg_draw_hline (unsigned int); |
1399 |
extern void SLsmg_draw_hline (unsigned int); |
1398 |
extern void SLsmg_draw_vline (int); |
1400 |
extern void SLsmg_draw_vline (int); |
|
|
1401 |
#ifdef UTF8 |
1402 |
extern void SLsmg_draw_object (int, int, SLsmg_Char_Type); |
1403 |
#else |
1399 |
extern void SLsmg_draw_object (int, int, unsigned char); |
1404 |
extern void SLsmg_draw_object (int, int, unsigned char); |
|
|
1405 |
#endif |
1400 |
extern void SLsmg_draw_box (int, int, unsigned int, unsigned int); |
1406 |
extern void SLsmg_draw_box (int, int, unsigned int, unsigned int); |
1401 |
extern int SLsmg_get_column(void); |
1407 |
extern int SLsmg_get_column(void); |
1402 |
extern int SLsmg_get_row(void); |
1408 |
extern int SLsmg_get_row(void); |
Lines 1408-1413
Link Here
|
1408 |
extern int SLsmg_Display_Eight_Bit; |
1414 |
extern int SLsmg_Display_Eight_Bit; |
1409 |
extern int SLsmg_Tab_Width; |
1415 |
extern int SLsmg_Tab_Width; |
1410 |
|
1416 |
|
|
|
1417 |
extern int SLsmg_Is_Unicode; |
1418 |
extern int SLsmg_Setlocale; |
1419 |
|
1411 |
#define SLSMG_NEWLINE_IGNORED 0 /* default */ |
1420 |
#define SLSMG_NEWLINE_IGNORED 0 /* default */ |
1412 |
#define SLSMG_NEWLINE_MOVES 1 /* moves to next line, column 0 */ |
1421 |
#define SLSMG_NEWLINE_MOVES 1 /* moves to next line, column 0 */ |
1413 |
#define SLSMG_NEWLINE_SCROLLS 2 /* moves but scrolls at bottom of screen */ |
1422 |
#define SLSMG_NEWLINE_SCROLLS 2 /* moves but scrolls at bottom of screen */ |
Lines 1465-1495
Link Here
|
1465 |
# define SLSMG_BOARD_CHAR '#' |
1474 |
# define SLSMG_BOARD_CHAR '#' |
1466 |
# define SLSMG_BLOCK_CHAR '#' |
1475 |
# define SLSMG_BLOCK_CHAR '#' |
1467 |
# else |
1476 |
# else |
1468 |
# define SLSMG_HLINE_CHAR 'q' |
1477 |
# define SLSMG_HLINE_CHAR (acs_map['q']) |
1469 |
# define SLSMG_VLINE_CHAR 'x' |
1478 |
# define SLSMG_VLINE_CHAR (acs_map['x']) |
1470 |
# define SLSMG_ULCORN_CHAR 'l' |
1479 |
# define SLSMG_ULCORN_CHAR (acs_map['l']) |
1471 |
# define SLSMG_URCORN_CHAR 'k' |
1480 |
# define SLSMG_URCORN_CHAR (acs_map['k']) |
1472 |
# define SLSMG_LLCORN_CHAR 'm' |
1481 |
# define SLSMG_LLCORN_CHAR (acs_map['m']) |
1473 |
# define SLSMG_LRCORN_CHAR 'j' |
1482 |
# define SLSMG_LRCORN_CHAR (acs_map['j']) |
1474 |
# define SLSMG_CKBRD_CHAR 'a' |
1483 |
# define SLSMG_CKBRD_CHAR (acs_map['a']) |
1475 |
# define SLSMG_RTEE_CHAR 'u' |
1484 |
# define SLSMG_RTEE_CHAR (acs_map['u']) |
1476 |
# define SLSMG_LTEE_CHAR 't' |
1485 |
# define SLSMG_LTEE_CHAR (acs_map['t']) |
1477 |
# define SLSMG_UTEE_CHAR 'w' |
1486 |
# define SLSMG_UTEE_CHAR (acs_map['v']) |
1478 |
# define SLSMG_DTEE_CHAR 'v' |
1487 |
# define SLSMG_DTEE_CHAR (acs_map['w']) |
1479 |
# define SLSMG_PLUS_CHAR 'n' |
1488 |
# define SLSMG_PLUS_CHAR (acs_map['n']) |
1480 |
# define SLSMG_DIAMOND_CHAR '`' |
1489 |
# define SLSMG_DIAMOND_CHAR (acs_map['`']) |
1481 |
# define SLSMG_DEGREE_CHAR 'f' |
1490 |
# define SLSMG_DEGREE_CHAR (acs_map['f']) |
1482 |
# define SLSMG_PLMINUS_CHAR 'g' |
1491 |
# define SLSMG_PLMINUS_CHAR (acs_map['g']) |
1483 |
# define SLSMG_BULLET_CHAR '~' |
1492 |
# define SLSMG_BULLET_CHAR (acs_map['~']) |
1484 |
# define SLSMG_LARROW_CHAR ',' |
1493 |
# define SLSMG_LARROW_CHAR (acs_map[',']) |
1485 |
# define SLSMG_RARROW_CHAR '+' |
1494 |
# define SLSMG_RARROW_CHAR (acs_map['+']) |
1486 |
# define SLSMG_DARROW_CHAR '.' |
1495 |
# define SLSMG_DARROW_CHAR (acs_map['.']) |
1487 |
# define SLSMG_UARROW_CHAR '-' |
1496 |
# define SLSMG_UARROW_CHAR (acs_map['-']) |
1488 |
# define SLSMG_BOARD_CHAR 'h' |
1497 |
# define SLSMG_BOARD_CHAR (acs_map['h']) |
1489 |
# define SLSMG_BLOCK_CHAR '0' |
1498 |
# define SLSMG_BLOCK_CHAR (acs_map['0']) |
|
|
1499 |
# |
1500 |
# define SLSMG_HLINE_CHAR_TERM 'q' |
1501 |
# define SLSMG_VLINE_CHAR_TERM 'x' |
1502 |
# define SLSMG_ULCORN_CHAR_TERM 'l' |
1503 |
# define SLSMG_URCORN_CHAR_TERM 'k' |
1504 |
# define SLSMG_LLCORN_CHAR_TERM 'm' |
1505 |
# define SLSMG_LRCORN_CHAR_TERM 'j' |
1506 |
# define SLSMG_CKBRD_CHAR_TERM 'a' |
1507 |
# define SLSMG_RTEE_CHAR_TERM 'u' |
1508 |
# define SLSMG_LTEE_CHAR_TERM 't' |
1509 |
# define SLSMG_UTEE_CHAR_TERM 'v' |
1510 |
# define SLSMG_DTEE_CHAR_TERM 'w' |
1511 |
# define SLSMG_PLUS_CHAR_TERM 'n' |
1512 |
# define SLSMG_DIAMOND_CHAR_TERM '`' |
1513 |
# define SLSMG_DEGREE_CHAR_TERM 'f' |
1514 |
# define SLSMG_PLMINUS_CHAR_TERM 'g' |
1515 |
# define SLSMG_BULLET_CHAR_TERM '~' |
1516 |
# define SLSMG_LARROW_CHAR_TERM ',' |
1517 |
# define SLSMG_RARROW_CHAR_TERM '+' |
1518 |
# define SLSMG_DARROW_CHAR_TERM '.' |
1519 |
# define SLSMG_UARROW_CHAR_TERM '-' |
1520 |
# define SLSMG_BOARD_CHAR_TERM 'h' |
1521 |
# define SLSMG_BLOCK_CHAR_TERM '0' |
1490 |
# endif /* AMIGA */ |
1522 |
# endif /* AMIGA */ |
1491 |
#endif /* IBMPC_SYSTEM */ |
1523 |
#endif /* IBMPC_SYSTEM */ |
1492 |
|
1524 |
|
|
|
1525 |
#ifdef UTF8 |
1526 |
# define SLSMG_HLINE_CHAR_UNICODE 0x2500 |
1527 |
# define SLSMG_VLINE_CHAR_UNICODE 0x2502 |
1528 |
# define SLSMG_ULCORN_CHAR_UNICODE 0x250c |
1529 |
# define SLSMG_URCORN_CHAR_UNICODE 0x2510 |
1530 |
# define SLSMG_LLCORN_CHAR_UNICODE 0x2514 |
1531 |
# define SLSMG_LRCORN_CHAR_UNICODE 0x2518 |
1532 |
# define SLSMG_RTEE_CHAR_UNICODE 0x2524 |
1533 |
# define SLSMG_LTEE_CHAR_UNICODE 0x251c |
1534 |
# define SLSMG_UTEE_CHAR_UNICODE 0x2534 |
1535 |
# define SLSMG_DTEE_CHAR_UNICODE 0x252c |
1536 |
# define SLSMG_PLUS_CHAR_UNICODE 0x253c |
1537 |
# define SLSMG_CKBRD_CHAR_UNICODE 0x2592 |
1538 |
# define SLSMG_DIAMOND_CHAR_UNICODE 0x25c6 |
1539 |
# define SLSMG_DEGREE_CHAR_UNICODE 0x00b0 |
1540 |
# define SLSMG_PLMINUS_CHAR_UNICODE 0x00b1 |
1541 |
# define SLSMG_BULLET_CHAR_UNICODE 0x00b7 |
1542 |
# define SLSMG_LARROW_CHAR_UNICODE 0x2190 |
1543 |
# define SLSMG_RARROW_CHAR_UNICODE 0x2192 |
1544 |
# define SLSMG_DARROW_CHAR_UNICODE 0x2193 |
1545 |
# define SLSMG_UARROW_CHAR_UNICODE 0x2191 |
1546 |
# define SLSMG_BOARD_CHAR_UNICODE 0x2592 |
1547 |
# define SLSMG_BLOCK_CHAR_UNICODE 0x25ae |
1548 |
#endif |
1549 |
|
1493 |
#ifndef IBMPC_SYSTEM |
1550 |
#ifndef IBMPC_SYSTEM |
1494 |
# define SLSMG_COLOR_BLACK 0x000000 |
1551 |
# define SLSMG_COLOR_BLACK 0x000000 |
1495 |
# define SLSMG_COLOR_RED 0x000001 |
1552 |
# define SLSMG_COLOR_RED 0x000001 |