File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ without requiring any extensions or special installation.
24
24
* [ History] ( #history )
25
25
* [ Autocomplete] ( #autocomplete )
26
26
* [ Keys] ( #keys )
27
+ * [ Bell] ( #bell )
27
28
* [ Readline] ( #readline )
28
29
* [ Pitfalls] ( #pitfalls )
29
30
* [ Install] ( #install )
@@ -534,6 +535,23 @@ $stdio->on("\033[A", function () use ($stdio) {
534
535
});
535
536
```
536
537
538
+ #### Bell
539
+
540
+ By default, this project will emit a audible/visible BELL signal when the user
541
+ tries to execute an otherwise disabled function, such as using the
542
+ <kbd >left</kbd > or <kbd >backspace</kbd > keys when already at the beginning of the line.
543
+
544
+ Whether or not the BELL is audible/visible depends on the termin and its
545
+ settings, i.e. some terminals may "beep" or flash the screen or emit a short
546
+ vibration.
547
+
548
+ The ` setBell(bool $bell): void ` method can be used to
549
+ enable or disable emitting the BELL signal when using a disabled function:
550
+
551
+ ``` php
552
+ $stdio->setBell(false);
553
+ ```
554
+
537
555
### Readline
538
556
539
557
The deprecated ` Readline ` class is responsible for reacting to user input and
You can’t perform that action at this time.
0 commit comments