[minicom-Bugs][310737] Newline delay max value too small

minicom-bugs at alioth.debian.org minicom-bugs at alioth.debian.org
Wed Apr 23 16:19:20 UTC 2008


Bugs item #310737, was opened at 23/04/2008 16:19
Status: Open
Priority: 3
Submitted By: barnabé bertrand (barnabe-guest)
Assigned to: Nobody (None)
Summary: Newline delay max value too small 
Category: None
Group: wishlist
Resolution: None


Initial Comment:
When using "Paste file" feature to upload files, it may be needed to use a big newline delay, to allow the remote device to correctly process input.

Working with a Cisco router may need a value around 150 ms, and the value in settings dialog is limited to two digits.

Proposed patch :

diff -Naur minicom-2.3.orig/src/config.c minicom-2.3/src/config.c
--- minicom-2.3.orig/src/config.c	2008-02-24 11:33:49.000000000 +0100
+++ minicom-2.3/src/config.c	2008-04-23 11:41:20.000000000 +0200
@@ -1214,10 +1214,10 @@
       case 'D':
         sprintf(buf, "%d", vt_nl_delay);
         mc_wlocate(w, mbslen(msg_nl_delay) +1, 4);
-        mc_wgets(w, buf, 4, 4);
+        mc_wgets(w, buf, 5, 5);
         vt_nl_delay = atoi(buf);
         mc_wlocate(w, mbslen(msg_nl_delay) +1, 4);
-        mc_wprintf(w, "%-3d", vt_nl_delay);
+        mc_wprintf(w, "%-4d", vt_nl_delay);
         break;
       case 'E':
         pgets(w, strlen(msg_answerback) + 1, 5, P_ANSWERBACK, 50, 50);

----------------------------------------------------------------------

You can respond by visiting: 
http://alioth.debian.org/tracker/?func=detail&atid=100031&aid=310737&group_id=30018



More information about the minicom-devel mailing list