|
From: Ethan M. <merritt@u.washington.edu> - 2003-10-22 16:58:27
|
On Wednesday 22 October 2003 04:04, Hans-Bernhard Broeker wrote: > On Wed, 22 Oct 2003, Petr Mikulik wrote: > > On my machine, the 2 patches pass the two problems. However, there is > > a new one: the Octave script below works differently whether the firs= t > > Octave command was "gset mouse" > > That's not at all new. That's exactly the problem that patch by > Johannes was made to fix, in the first place: quick cut-n-paste with > mousing on will loose large quantities of input and find them again as > soon as you press a key. So now we have a problem: octave scripts only work with the call to setvbuf(), while awk scripts only work without it. Octave is likely t= he more important application, and anyway people have been using the setvbuf() version for almost 2 years now. So we should leave the default the way it is. However, in case someone does want to use an awk script, perhaps there could be an option =09set mouse [no]buffered The default would be nobuffered, implemented by the existing call to setvbuf(). Specifying 'set mouse buffered' instead would bypass the call to setvbuf() and allow awk to work.=20 Would that be an acceptable work-around? --=20 Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Box 357742 University of Washington, Seattle, WA 98195 |