mirror of
				https://github.com/troglobit/editline.git
				synced 2025-11-01 01:01:34 +08:00 
			
		
		
		
	 5e9177fd18
			
		
	
	5e9177fd18
	
	
	
		
			
			This changeset refactors el_bind_key_in_metamap() into two functions, adding el_bind_key(), to provide the ability for the user to bind keys in both the regular and the meta-key maps. Several useful, but previously internal, functions have been made global to facilitate the example code mentioned above. These are likely useful to the user of this library as well: el_print_columns() - Display words in columns across a tty_cols wide screen. el_ring_bell() - Can be used as default key binding function. el_find_word() - Returns a copy of the word at rl_point.
		
			
				
	
	
		
			12 lines
		
	
	
		
			534 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			534 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| TODO
 | |
| 
 | |
| * Port "fileman" example from BSD libedit, http://www.thrysoee.dk/editline/
 | |
| * Add support for rl_bind_key(), currently only en editline specific el_bind_key() exists.
 | |
| * Add support for inhibiting completion: rl_inhibit_completion
 | |
| * Make "char *rl_prompt" globally visible.
 | |
| * Add support for rl_set_prompt().
 | |
| * Add support for --enable-utf8 to configure
 | |
| * Use strcmp(nl_langinfo(CODESET), "UTF-8") to look for utf8 capable terminal.
 | |
| * Implement simple UTF-8 parser according to http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
 | |
| 
 |