kdb_msg_write
kdb_msg_write(cp, retlen - (cp - kdb_buffer));
kdb_msg_write(moreprompt, strlen(moreprompt));