Date: Tue, 8 Jan 2008 17:30:03 GMT From: Eugene Grosbein <eugen@kuzbass.ru> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/119447: [patch] ysm's charset conversion does not work Message-ID: <200801081730.m08HU3pX030858@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/119447; it has been noted by GNATS. From: Eugene Grosbein <eugen@kuzbass.ru> To: bug-followup@freebsd.org Cc: Subject: Re: ports/119447: [patch] ysm's charset conversion does not work Date: Wed, 9 Jan 2008 00:21:24 +0700 Hi! Another patch to make ysm more usable. It switches readline to "vi-insert" editing mode instead of default and more common "emacs". One could workaround this with the following section in ~/.inputrc: $if ysm set editing-mode emacs set horizontal-scroll-mode off $endif But ysm does not inform readline about its name, hence the patch for files/ directory. One may use ~/.ysm/inputrc file for readline settings dedicated for ysm but centralized ~/.inputrc should be supported too, --- src/YSM_Prompt.c.orig Tue Jan 8 23:37:16 2008 +++ src/YSM_Prompt.c Wed Jan 9 00:10:32 2008 @@ -564,6 +564,11 @@ YSM_ConsoleRestore(); /* Set default readline values */ + + rl_readline_name = "ysm"; + using_history(); + unstifle_history(); + rl_variable_bind("editing-mode", "emacs"); rl_bind_key('\t', YSM_ConsoleTabHook); /* Tab hook for emacs */ /* ysm hot keys */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801081730.m08HU3pX030858>