Mercurial > hg > xemacs-beta
comparison src/redisplay-tty.c @ 5475:248176c74e6b
Merge with trunk.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Sat, 23 Apr 2011 23:47:13 +0200 |
parents | 308d34e9f07d 5256fedd50e6 |
children | f87be7ddd60d |
comparison
equal
deleted
inserted
replaced
5474:4dee0387b9de | 5475:248176c74e6b |
---|---|
1112 CONSOLE_TTY_DATA (c)->height = tgetnum ("li"); | 1112 CONSOLE_TTY_DATA (c)->height = tgetnum ("li"); |
1113 | 1113 |
1114 if (CONSOLE_TTY_DATA (c)->width <= 0 || CONSOLE_TTY_DATA (c)->height <= 0) | 1114 if (CONSOLE_TTY_DATA (c)->width <= 0 || CONSOLE_TTY_DATA (c)->height <= 0) |
1115 return TTY_SIZE_UNSPECIFIED; | 1115 return TTY_SIZE_UNSPECIFIED; |
1116 | 1116 |
1117 CONSOLE_TTY_DATA (c)->colors = tgetnum("Co"); | |
1118 if (CONSOLE_TTY_DATA (c)->colors == 0) | |
1119 CONSOLE_TTY_DATA (c)->colors = tgetnum("colors"); | |
1120 if (CONSOLE_TTY_DATA (c)->colors == 0) | |
1121 /* There is always foreground and background. */ | |
1122 CONSOLE_TTY_DATA (c)->colors = 2; | |
1123 | |
1117 /* | 1124 /* |
1118 * Initialize cursor motion information. | 1125 * Initialize cursor motion information. |
1119 */ | 1126 */ |
1120 | 1127 |
1121 /* local cursor movement */ | 1128 /* local cursor movement */ |