Skip to contentSkip to conversation

readline: add ctrl-u (unix-line-discard)

PATCH Applied Robert Karszniewicz 2 participants 2 messages Feb 1, 2019 – Feb 5, 2019 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 readline: add ctrl-u (unix-line-discard)

---
 lib/readline.c | 1 +
 1 file changed, 1 insertion(+)
lib/readline.c +1 -0
index 904a77639..d026af110 100644
@@ -290,6 +290,7 @@ int readline(const char *prompt, char *buf, int len)
 			insert = !insert;
 			break;
 		case BB_KEY_ERASE_LINE:
+		case CTL_CH('u'):
 			BEGINNING_OF_LINE();
 			ERASE_TO_EOL();
 			break;
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Robert Karszniewicz
---
 lib/readline.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

Sascha

Quoted 22 lines
lib/readline.c +1 -0
index 904a77639..d026af110 100644
@@ -290,6 +290,7 @@ int readline(const char *prompt, char *buf, int len)
 			insert = !insert;
 			break;
 		case BB_KEY_ERASE_LINE:
+		case CTL_CH('u'):
 			BEGINNING_OF_LINE();
 			ERASE_TO_EOL();
 			break;
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox