scroll off the top of the display window.
The reason for this is that the code for determining the number of lines
remaining counts "\nfoo" as one line, even though it will take up two on
your display.
Fix: Use Put_message("") instead of \n for a blank line.
sprintf(buf, "OS: %-16s Billing Contact: %s", info[M_OS],
info[M_BILL_CONTACT]);
Put_message(buf);
- sprintf(buf, "\nOpt: %s", info[M_USE]);
+ Put_message("");
+ sprintf(buf, "Opt: %s", info[M_USE]);
Put_message(buf);
- sprintf(buf, "\nAdm cmt: %s", info[M_ACOMMENT]);
+ Put_message("");
+ sprintf(buf, "Adm cmt: %s", info[M_ACOMMENT]);
Put_message(buf);
sprintf(buf, "Op cmt: %s", info[M_OCOMMENT]);
Put_message(buf);