petsciiconv_topetscii(telnetline, sizeof(telnetline)); add_text(telnetline); memset(telnetline, 0, sizeof(telnetline));
petsciiconv_topetscii(sendline, sizeof(sendline)); scrollup(); add_text(sendline); CTK_TEXTENTRY_CLEAR(&telnetlinetextentry);
telnet_sent(struct telnet_state *s){  petsciiconv_topetscii(telnetline, sizeof(telnetline));  add_text(telnetline);  memset(telnetline, 0, sizeof(telnetline));  ctk_window_redraw(&telnetwindow);}