while (fgets (buf, 80, bannerfile) != NULL)
{
char bufnew[80];
+ int slen;
memset (bufnew, 0, 80);
+ slen = strlen(buf);
+ if ((slen > 0) && (buf[slen-1] == '\n')) buf[slen-1] = '\0';
+
ban->len++;
ban->lines = realloc (ban->lines, sizeof (char *) * ban->len);
# the file must be inside the chroot.
bannerfile = "dgl_menu_main_user.txt"
# after which cursor is moved to this location
- cursor = (5,18)
+# if cursor-definition is missing, the cursor is put
+# to the end of the last line of the banner.
+# cursor = (5,18)
# keys we accept. format is
# commands["string_of_keys"] = <commandlist>
# for example, you could use commands["qQ"] = quit