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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user