extern int tgetent();
extern char *tgetstr(),*getenv();
+#if 0
short ospeed;
char PC;
+#endif
/* Dictionary naming convention:
int ex;
string_dictionary_binding *b;
int isrealtty = string_Eq(drivername, "tty");
+#if 0
#ifdef HAVE_TERMIOS_H
struct termios tbuf;
struct sgttyb sgttyb;
ospeed = (ioctl(0, TIOCGETP, &sgttyb) == 0) ? sgttyb.sg_ospeed : 2400;
+#endif
#endif
if (termcap_dict == (string_dictionary) NULL)
/* We cheat here, and ignore the padding (if any) specified for
the mode-change strings (it's a real pain to do "right") */
+#if 0
tmp = tgetstr("pc", &p);
PC = (tmp) ? *tmp : 0;
+#endif
if (tmp = tgetstr("md",&p)) { /* bold ? */
EXPAND("B.bold");
tmp = tgetstr("me",&p);
/* Add new block (call it temp) to result: */
temp = (tty_str_info *)malloc(sizeof(struct _tty_str_info));
+ *temp = current_mode;
if (last_result_block) {
last_result_block->next = temp;
last_result_block = temp;
}
if (desc->code == DT_STR) {
/* just combine string info with current mode: */
- *temp = current_mode;
temp->str = desc->str;
temp->len = desc->len;
} else if (desc->code == DT_NL) {
/* make the new block a ' ' alignment block with an empty string */
temp->alignment = ' ';
temp->len = 0;
+ temp->ignore = 0;
}
}