mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 11:02:48 -05:00
Implement Richard's really clever idea about bell overload mode:
it's automatically deactivated by any keypress, so that command-line beeps from (e.g.) filename completion don't suddenly stop occurring, but it still provides a rapid response to an accidental spewing of a binary to your terminal. [originally from svn r2107]
This commit is contained in:
@ -218,6 +218,11 @@ not drive you crazy.
|
||||
The bell overload mode is activated by receiving N bells in time T;
|
||||
after a further time S without any bells, overload mode will turn
|
||||
itself off again.
|
||||
|
||||
Bell overload mode is always deactivated by any keypress in the
|
||||
terminal. This means it can respond to large unexpected streams of
|
||||
data, but does not interfere with ordinary command-line activities
|
||||
that generate beeps (such as filename completion).
|
||||
.IP "\fBpterm.BellOverloadN\fP"
|
||||
This option counts the number of bell characters which will activate
|
||||
bell overload if they are received within a length of time T. The
|
||||
|
@ -786,7 +786,7 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
|
||||
|
||||
ldisc_send(output+start, end-start, 1);
|
||||
show_mouseptr(0);
|
||||
seen_key_event = 1;
|
||||
term_seen_key_event();
|
||||
term_out();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user