Pass 'term' string into new_driver virtual method; have drivers sensitive to it and return NULL if they can't handle. Try CSI driver first; only for xterm-alikes

This commit is contained in:
Paul LeoNerd Evans
2008-10-09 20:23:45 +01:00
parent a61b916c18
commit 05639c4773
4 changed files with 21 additions and 6 deletions

View File

@@ -8,7 +8,7 @@
struct termkey_driver
{
void *(*new_driver)(termkey_t *tk);
void *(*new_driver)(termkey_t *tk, const char *term);
void (*free_driver)(void *);
termkey_result (*getkey)(termkey_t *tk, termkey_key *key, int force);
};