daanx / isocline

Isocline is a portable GNU readline alternative
MIT License
232 stars 23 forks source link

How to turn off all funky stuff... no brace matching, no auto-completion, just want basic mode #10

Closed infradig closed 2 years ago

infradig commented 2 years ago

Title says it all. I can't find anything.

Also, on a light themed terminal the default grays are just unreadable. I can't find any documentation on how to chnage that.

flexoron commented 2 years ago

I guess some hints are found in isocline.c for example: ic_enable_brace_matching(false); ic_enable_brace_insertion(false); ic_enable_completion_preview(false); ic_enable_color(false);

and it seems that NULLs disable functionality as well (I don't get bus errors or segfaults so far) ic_set_default_completer(NULL, NULL); ic_set_default_highlighter(NULL, NULL);

infradig commented 2 years ago

Thanks.

On Mon, Feb 28, 2022 at 7:59 AM flexoron @.***> wrote:

I guess some hints are found in isocline.c for example: ic_enable_brace_matching(false); ic_enable_brace_insertion(false); ic_enable_completion_preview(false); ic_enable_color(false);

and it seems that NULLs disable functionality as well (I don't get bus errors or segfaults so far) ic_set_default_completer(NULL, NULL); ic_set_default_highlighter(NULL, NULL);

— Reply to this email directly, view it on GitHub https://github.com/daanx/isocline/issues/10#issuecomment-1053696142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFNKSEU6AEHXFUERJWO76MDU5KNCPANCNFSM5PMXJQ3A . You are receiving this because you authored the thread.Message ID: @.***>

infradig commented 2 years ago

I am now using ISOCLINE as the default in https://github.com/trealla-prolog/trealla

Thanks

daanx commented 2 years ago

Yes, the header file shows these options best, see https://github.com/daanx/isocline/blob/main/include/isocline.h#L315

Trealla looks like a fun project -- let me know if you find further issues.