summaryrefslogtreecommitdiff
path: root/Src/params.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-02-08 10:43:28 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-02-08 10:43:28 +0000
commit62b671f0d17f735646566bcf49b0dc4ffe51f158 (patch)
tree286109c08bf0291d46bcd443add90cca4e34b5cf /Src/params.c
parent6cf7a3ef113ce956e7c4059956b2d4e0f67906fe (diff)
downloadzsh-62b671f0d17f735646566bcf49b0dc4ffe51f158.tar.gz
zsh-62b671f0d17f735646566bcf49b0dc4ffe51f158.zip
23159 plus minor doc tweaks: leave BAUD parameter unset by default
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/Src/params.c b/Src/params.c
index 917f2ee85..8e79b289b 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -640,9 +640,16 @@ createparamtable(void)
setiparam("LOGCHECK", 60);
setiparam("KEYTIMEOUT", 40);
setiparam("LISTMAX", 100);
-#ifdef HAVE_SELECT
- setiparam("BAUD", getbaudrate(&shttyinfo)); /* get the output baudrate */
-#endif
+ /*
+ * We used to get the output baud rate here. However, that's
+ * pretty irrelevant to a terminal on an X display and can lead
+ * to unnecessary delays if it's wrong (which it probably is).
+ * Furthermore, even if the output is slow it's very likely
+ * to be because of WAN delays, not covered by the output
+ * baud rate.
+ * So allow the user to set it in the special cases where it's
+ * useful.
+ */
setsparam("TMPPREFIX", ztrdup(DEFAULT_TMPPREFIX));
setsparam("TIMEFMT", ztrdup(DEFAULT_TIMEFMT));
setsparam("WATCHFMT", ztrdup(default_watchfmt));