more work on ansi display
This commit is contained in:
parent
6bb2df7abd
commit
baa3a0fef7
16
mail_menu.c
16
mail_menu.c
@ -820,11 +820,21 @@ void read_message(int socket, struct user_record *user, struct msg_headers *msgh
|
|||||||
ansi = z;
|
ansi = z;
|
||||||
while (strchr("ABCDEFGHIGJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", body[z]) == NULL)
|
while (strchr("ABCDEFGHIGJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", body[z]) == NULL)
|
||||||
z++;
|
z++;
|
||||||
if (body[z] == 'm' || body[z] == 'C') {
|
if (body[z] == 'm' || body[z] == 'C' || body[z] == 'B' || body[z] == 'D') {
|
||||||
strncpy(buffer, &body[ansi], z - ansi);
|
strncpy(buffer, &body[ansi], (z - ansi) + 1);
|
||||||
buffer[z - ansi] = '\0';
|
buffer[z - ansi + 1] = '\0';
|
||||||
s_putstring(socket, buffer);
|
s_putstring(socket, buffer);
|
||||||
}
|
}
|
||||||
|
if (body[z] == 'C') {
|
||||||
|
chars += atoi(&body[ansi + 2]);
|
||||||
|
}
|
||||||
|
if (body[z] == 'B') {
|
||||||
|
lines += atoi(&body[ansi + 2]);
|
||||||
|
}
|
||||||
|
if (body[z] == 'D') {
|
||||||
|
chars -= atoi(&body[ansi + 2]);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
chars++;
|
chars++;
|
||||||
s_putchar(socket, body[z]);
|
s_putchar(socket, body[z]);
|
||||||
|
Reference in New Issue
Block a user