1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Comment changes only (about charsets in terminals).

This commit is contained in:
Kalle Olavi Niemitalo 2007-01-24 23:11:17 +02:00 committed by Kalle Olavi Niemitalo
parent 448f1b55cd
commit 3b7c021254
3 changed files with 6 additions and 2 deletions

View File

@ -31,6 +31,8 @@ enum screen_char_attr {
/* One position in the terminal screen's image. */ /* One position in the terminal screen's image. */
struct screen_char { struct screen_char {
/* Contains either character value or frame data. /* Contains either character value or frame data.
* If @attr includes SCREEN_ATTR_FRAME, then @data is enum
* border_char; otherwise, @data is a character value.
* If CONFIG_UTF8 is defined, and UTF-8 I/O is enabled for the * If CONFIG_UTF8 is defined, and UTF-8 I/O is enabled for the
* terminal, then the character value is in UCS-4; otherwise, * terminal, then the character value is in UCS-4; otherwise,
* it is in the charset of the terminal, and the charset is * it is in the charset of the terminal, and the charset is

View File

@ -112,7 +112,7 @@ struct screen_driver {
#ifndef CONFIG_UTF8 #ifndef CONFIG_UTF8
/* Charsets when doing UTF8 I/O. */ /* Charsets when doing UTF8 I/O. */
/* [0] is the common charset and [1] is the frame charset. /* [0] is the common charset and [1] is the frame charset.
* Test wether to use UTF8 I/O using the use_utf8_io() macro. */ * Test whether to use UTF8 I/O using the use_utf8_io() macro. */
int charsets[2]; int charsets[2];
#endif /* CONFIG_UTF8 */ #endif /* CONFIG_UTF8 */

View File

@ -109,7 +109,9 @@ int elinks_strlcasecmp(const unsigned char *s1, size_t n1,
#define isasciialnum(c) (isasciialpha(c) || isdigit(c)) #define isasciialnum(c) (isasciialpha(c) || isdigit(c))
#define isident(c) (isasciialnum(c) || (c) == '_' || (c) == '-') #define isident(c) (isasciialnum(c) || (c) == '_' || (c) == '-')
/* Char is safe to write to the terminal screen */ /* Char is safe to write to the terminal screen. Cannot test for C1
* control characters (0x80 to 0x9F) because this is also used for
* non-ISO-8859 charsets. */
#define isscreensafe(c) ((c) >= ' ' && (c) != ASCII_DEL) #define isscreensafe(c) ((c) >= ' ' && (c) != ASCII_DEL)