Re: io readline support

Max Techter <[email protected]>
Newsgroups gmane.comp.lang.io
Message-ID <[email protected]>
Max Techter <[email protected]> wrote: 
> 
> Hi,  
> 
>    compiled io from 
> 
>        stevedekorte-io-2010.06.06-378-ge046255.zip
> 
>    on a Debian GNU/Linux, x86_64  (lenny, partly squeeze) 
> 
>    in ./addons/CMakeLists.txt, I had to outcomment line 84 
> 
>    # add_subdirectory(ObjcBridge) # XXX: Broken for me -- Objective-C 2.0 not supported
>    
>    obviously I was not the first one, who had trouble with this line ;-) 
>    
>    this was the only problem during compilation.  
> 
> 
>    Readline works, history is supported, but an entry in ~/.inputrc 
> 
>       $if io
>          set editing-mode vi
>       $endif
> 
>    is not honored. 
>    

Hi, 

    workaround: 

	    a line 

		   set editing-mode vi

	    in ~/.inputrc without any conditional 
	    puts all interpreters, io too, in vi editing mode. 

   fix: 

	   after adding a toplevel line 

		  const char * rl_readline_name = "io";

	   in ./addons/ReadLine/source/IoReadLine.c, the name "io" is 
	   honored, so conditional parsing of the inputrc file becomes 
	   possible. 

regards 
max
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAk4piwsACgkQoGG7ULJBvfoxHQCfRjBXZ+5y02l+ggnv8RZowkmw
SzkAn1Mobe2hSJN9iBsgzyZ4RUJoZ5YP
=Xcxt
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.