From fc56a9f8d70579393e66a22a7df15fba2d78c154 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 12 Mar 2022 16:19:02 -0500 Subject: Add edit option to set line editing mode I'm not super happy with the guessing based on .editrc or .inputrc because I'm not parsing the files for real, but it's a conservative guess and should do the right thing in most cases. --- chat.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 1c46f00..af9cea8 100644 --- a/chat.h +++ b/chat.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2020 C. McEnroe +/* Copyright (C) 2020 June McEnroe * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -328,6 +328,10 @@ void uiFormat( void uiLoad(const char *name); int uiSave(void); +extern enum InputMode { + InputEmacs, + InputVi, +} inputMode; void inputInit(void); void inputWait(void); void inputUpdate(void); -- cgit 1.4.1