Work around for displaying mail in HTMLTerm

This commit is contained in:
Andrew Pamment 2017-09-17 19:15:47 +10:00
parent 4e52eaca54
commit d4366be739

View File

@ -1538,7 +1538,7 @@ void read_message(struct user_record *user, struct msg_headers *msghs, int mailn
should_break = 0;
while (!should_break) {
s_printf("\e[7;1H\e[J");
s_printf("\e[7;1H");
for (z=position;z<msg_line_count;z++) {
s_printf("%s\e[K\r\n", msg_lines[z]);
@ -1547,6 +1547,7 @@ void read_message(struct user_record *user, struct msg_headers *msghs, int mailn
break;
}
}
s_printf(get_string(187));
s_printf(get_string(186));
c = s_getc();
@ -1566,7 +1567,7 @@ void read_message(struct user_record *user, struct msg_headers *msghs, int mailn
}
} else if (c == 66) {
position++;
if (position + 15 > msg_line_count) {
if (position + 15 >= msg_line_count) {
position--;
}
} else if (c == 67) {