Commit 81d0e4b9 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Support the -insert (instead of overwrite kbrd mode) option in more UIFC apps

I think this is what nelgin/Keyop was asking for via IRC.
parent 83149041
Pipeline #3166 passed with stage
in 9 minutes and 53 seconds
......@@ -650,6 +650,10 @@ int main(int argc, char **argv)
memset(&cfg,0,sizeof(cfg));
str[0]=0;
for(i=1;i<argc;i++) {
if(strcmp(argv[i], "-insert") == 0) {
uifc.insert_mode = TRUE;
continue;
}
if(argv[i][0]=='-')
switch(toupper(argv[i][1])) {
case 'D':
......
......@@ -1940,6 +1940,10 @@ int main(int argc, char** argv) {
uifc.esc_delay=500;
for(i=1;i<argc;i++) {
if(strcmp(argv[i], "-insert") == 0) {
uifc.insert_mode = TRUE;
continue;
}
if(argv[i][0]=='-')
switch(toupper(argv[i][1])) {
case 'C':
......
......@@ -895,6 +895,10 @@ int main(int argc, char** argv) {
boxch.bl=(char)200;
boxch.br=(char)188;
for(i=1;i<argc;i++) {
if(strcmp(argv[i], "-insert") == 0) {
uifc.insert_mode = TRUE;
continue;
}
if(argv[i][0]=='-')
switch(toupper(argv[i][1])) {
case 'C':
......
......@@ -1489,6 +1489,10 @@ int main(int argc, char **argv)
text_mode=_ORIGMODE;
for(i=1;i<argc;i++) {
if(strcmp(argv[i], "-insert") == 0) {
uifc.insert_mode = TRUE;
continue;
}
if(argv[i][0]=='-'
#ifndef __unix__
|| argv[i][0]=='/'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment