On Thu, Jan 30, 2014 at 12:56 PM, Dan Jacobson <[email protected]> wrote:
> >>>>> "PG" == Pierre Gaston <[email protected]> writes: > PG> Maybe try something like: PROMPT_COMMAND='read -t0 && sleep 10' > > But how will that on its own stop me from dumping tons of lines of junk > into bash via one accidental mouse click? > Well if the sleep trick works, I would hope that read -t0 would be true if there is still something in the buffer of the terminal and call sleep. Of course I don't know how all this works precisely so maybe you need > 4k of data hence the "maybe"
