This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 11c0a8d34 console: Auto search cosmetics
11c0a8d34 is described below
commit 11c0a8d342784e103a41d425d0aea6000b589486
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Mon Mar 23 18:36:20 2026 +0100
console: Auto search cosmetics
When history auto-search is enabled and current
prompt displayed already typed character it also
showed possible completion from history, but that
part was drawn in inverse.
When user pressed enter, inversed text stayed on
terminal.
Now inverse text is redrawn in normal color to make
output look cleaner.
Signed-off-by: Jerzy Kasenberg <[email protected]>
---
sys/console/full/src/console.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/console/full/src/console.c b/sys/console/full/src/console.c
index 5460b95b1..7632b7c0d 100644
--- a/sys/console/full/src/console.c
+++ b/sys/console/full/src/console.c
@@ -1184,6 +1184,9 @@ console_handle_char(uint8_t byte)
console_switch_to_prompt();
console_clear_line();
} else {
+ if (trailing_selection) {
+ console_write_nolock(input->line + cur, trailing_chars);
+ }
console_filter_out('\r');
console_filter_out('\n');
}