bind ctrl+n & ctrl+p

This commit is contained in:
dzaima 2022-11-06 00:17:47 +02:00
parent 1f5be9e69e
commit ff36205a34

View File

@ -762,6 +762,8 @@ int main(int argc, char* argv[]) {
replxx_enable_bracketed_paste(replxx);
replxx_bind_key(replxx, '\\', backslash_replxx, NULL);
replxx_set_modify_callback(replxx, modified_replxx, NULL);
replxx_bind_key_internal(replxx, REPLXX_KEY_CONTROL('N'), "history_next");
replxx_bind_key_internal(replxx, REPLXX_KEY_CONTROL('P'), "history_previous");
while(true) {
const char* ln = replxx_input(replxx, " ");