[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [screen-devel] Why not nonblock by default?
From: |
Juergen Weigert |
Subject: |
Re: [screen-devel] Why not nonblock by default? |
Date: |
Fri, 13 Mar 2009 15:25:33 +0100 |
Uh,
difficult matter....
In case of a slow line, e.g. dialup line (bandwidth) or overloaded line
(high latency) we'd like screen to wait a bit and try to get the display right.
It is also an annoyance to users, when the scrollback buffer of their
xterm/konsole/gnome-terminal does not contain *all* text.
This requires 'nonblock off'.
(On the other hand:
The current full blocking default also has the downside that as soon as an
application becomes I/O-bound, screen becomes quite nonresponsive.
$ cat hugefile
CTRL-C
CTRL-C
...
may be difficult to interrupt.
)
I believe that nonblock is not the correct solution for fixing
hung write() calls.
I'd suggest screen should have an alarm() over each write()
and switch to nonblock, when the alarm() fires.
With a prominent Msg() saying so, as soon as the display works again.
cheers,
JW-
On Mar 05, 09 23:17:42 -0800, Micah Cowan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Does anyone know, is there any particular reason why we don't make
> nonblock the default? It's an annoyance to users when a display gets
> hung and any windows connected with it get stuck, especially since
> novice users are unlikely to realize that "nonblock 1" won't affect the
> buggered display, and may not think to do C-a : at % nonblock on
>
> I'd like to propose that the default value for defnonblock be changed
> from "off" to something like, I dunno, 8 ? Or lower, if there's no
> particular reason why we shouldn't.
>
> - --
> Micah J. Cowan
> Programmer, musician, typesetting enthusiast, gamer.
> Maintainer of GNU Wget and GNU Teseq
> http://micah.cowan.name/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkmwzgcACgkQ7M8hyUobTrFz+gCeKz4yrI3vKXtn7qNGDAqjQuwa
> zt0An2PFL16JIh0YKw9Eprgi05kGHFzy
> =tg2P
> -----END PGP SIGNATURE-----
>
>
--
o \ Juergen Weigert paint it green! __/ _=======.=======_
<V> | address@hidden back to ascii! __/ _---|____________\/
\ | 0911 74053-508 __/ (____/ /\
(/) | _____________________________/ _/ \_ vim:set sw=2 wm=8
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)