This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
[PATCH] Color support for "gui_entry" to allow better spellcheckers. #621
Comments
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This patch adds color support to the "gui_entry" input line.
It does so, by assigning a color to each character. The color is stored in a GUI_ENTRY_REC as int *colors.
To use the functionality, I added the method:
void gui_entry_set_color(GUI_ENTRY_REC *entry, int pos, int len, int color);
On top of this, for the Perl bindings I added:
gui_input_color(pos, len, color)
I am not sure about exact naming conventions, but this would be trivial to change anyway.
The main purpose for now (and my main motivation) is to provide better support for spellcheckers by marking misspelled words.
See http://outpo.st/irssi/spellcheck.pl for an implementation based on the original script by Jakub Jankowski.
The text was updated successfully, but these errors were encountered: