diff options
author | Aaron Gyes <me@aaron.gy> | 2016-02-22 05:00:23 -0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2016-02-25 08:18:27 +0800 |
commit | c79ade9627b116a0dc4aecd27d1ff61e68fe595b (patch) | |
tree | a040a0cd23d382924131308b1540d834c93ae586 | |
parent | d61e95e4f9aee04cd1033381f96e569765ecbac1 (diff) |
Send BEL to terminal to flash/beep while trying to complete something not completeable.
-rw-r--r-- | src/reader.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/reader.cpp b/src/reader.cpp index 81bdefb8..1b4f8d2d 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1607,9 +1607,9 @@ static void select_completion_in_direction(enum selection_direction_t dir) } /** - Flash the screen. This function only changed the color of the - current line, since the flash_screen sequnce is rather painful to - look at in most terminal emulators. + Flash the screen. This function changes the color of the + current line momentarily and sends a BEL to maybe flash the + screen or emite a sound, depending on how it is configured. */ static void reader_flash() { @@ -1622,6 +1622,7 @@ static void reader_flash() } reader_repaint(); + writestr(L"\a"); pollint.tv_sec = 0; pollint.tv_nsec = 100 * 1000000; |