From 3247302d708bbf2569409083a253d4d5500f530b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Thu, 26 Sep 2024 00:45:32 -0400
Subject: [PATCH] Start UIFC in insert mode.

Per comment on reddit by dialsoft, the lack of an insert key on
laptops can make manipulating the phonebook more difficult.  Since
all the other UIFC functions have an insert alternate, they don't
need any changes now that there's a manual, but for editing a
string, the insert key is the only way to toggle overstrike.

Since the insert mode toggle persists, simply starting in overstrike
mode should be fine.

Maybe some weird control key of function key can be used (though
I guess laptops don't have function keys either anymore).
---
 src/syncterm/syncterm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/syncterm/syncterm.c b/src/syncterm/syncterm.c
index 439c5f75d8..f5389e5f62 100644
--- a/src/syncterm/syncterm.c
+++ b/src/syncterm/syncterm.c
@@ -1566,6 +1566,7 @@ main(int argc, char **argv)
 	uifc.mode = UIFC_NOCTRL | UIFC_NHM;
 	uifc.size = sizeof(uifc);
 	uifc.esc_delay = 25;
+	uifc.insert_mode = TRUE;
 	url[0] = 0;
 
 	/*
-- 
GitLab