Make the bottom bar of mail reading a bit nicer

This commit is contained in:
Andrew Pamment 2016-12-01 07:36:39 +10:00
parent 51e130db00
commit 2aac742174
2 changed files with 5 additions and 3 deletions

View File

@ -184,4 +184,5 @@ Login Name:
\r\n-------------------------------------\r\n \r\n-------------------------------------\r\n
Is this Correct? (Y/N) Is this Correct? (Y/N)
\e[1;37mPress any key to continue...\e[0m \e[1;37mPress any key to continue...\e[0m
\e[24;1H\e[1;37;44mUp / Down to Scroll, Left / Right Change Message, R reply, Q quit\e[K\e[0m \e[24;1H\e[1;32mUp / Down \e[1;37mto Scroll, \e[1;32mLeft / Right \e[1;37mChange Message, \e[1;32mR \e[1;37mreply, \e[1;32mQ \e[1;37mquit\e[K\e[0m
\e[23;1H\e[1;30m-------------------------------------------------------------------------------\e[0m\r\n

View File

@ -911,10 +911,11 @@ void read_message(struct user_record *user, struct msg_headers *msghs, int mailn
s_printf("%s\e[K\r\n", msg_lines[z]); s_printf("%s\e[K\r\n", msg_lines[z]);
if (z - position >= 16) { if (z - position >= 15) {
break; break;
} }
} }
s_printf(get_string(187));
s_printf(get_string(186)); s_printf(get_string(186));
c = s_getc(); c = s_getc();
@ -933,7 +934,7 @@ void read_message(struct user_record *user, struct msg_headers *msghs, int mailn
} }
} else if (c == 66) { } else if (c == 66) {
position++; position++;
if (position + 16 > msg_line_count) { if (position + 15 > msg_line_count) {
position--; position--;
} }
} else if (c == 67) { } else if (c == 67) {