diff options
| author | Lukas Fürmetz <fuermetz@mailbox.org> | 2019-07-31 14:37:38 +0200 |
|---|---|---|
| committer | Lukas Fürmetz <fuermetz@mailbox.org> | 2019-07-31 14:38:45 +0200 |
| commit | 7765a7e03e62c954c7ac0a606d513c7e2f59611d (patch) | |
| tree | 2d37b879ba264fcdaf874ce92433fb45c0a32096 /vterm-module.h | |
| parent | ede54f3cd3b0bb7f06d7289652e9ad3ca40e2860 (diff) | |
Fix handling of enter
We query now the corresponding pty to get the exact key for enter.
Fixes #77
Diffstat (limited to 'vterm-module.h')
| -rw-r--r-- | vterm-module.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vterm-module.h b/vterm-module.h index 7f599b4..0eb2f6c 100644 --- a/vterm-module.h +++ b/vterm-module.h @@ -60,6 +60,8 @@ typedef struct Term { bool is_title_changed; int width, height; + + int pty_fd; } Term; static bool compare_cells(VTermScreenCell *a, VTermScreenCell *b); @@ -90,6 +92,9 @@ emacs_value Fvterm_write_input(emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data); emacs_value Fvterm_set_size(emacs_env *env, ptrdiff_t nargs, emacs_value args[], void *data); +emacs_value Fvterm_set_pty_name(emacs_env *env, ptrdiff_t nargs, + emacs_value args[], void *data); + int emacs_module_init(struct emacs_runtime *ert); #endif /* VTERM_MODULE_H */ |
