diff options
| author | Gabriele Bozzola <sbozzolator@gmail.com> | 2020-06-05 18:26:36 -0700 |
|---|---|---|
| committer | Gabriele Bozzola <sbozzolator@gmail.com> | 2020-06-13 07:55:46 -0700 |
| commit | 16555ff655962fc03b650652cb8d9efec788347e (patch) | |
| tree | fc1b588995d74ad273816f3eb0281bf8c3c04e02 /vterm-module.c | |
| parent | 5b19c8356575232e9ab38e7186173656d15b8f14 (diff) | |
Add comments on prompt identification
Diffstat (limited to 'vterm-module.c')
| -rw-r--r-- | vterm-module.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vterm-module.c b/vterm-module.c index c1bdc32..96fd746 100644 --- a/vterm-module.c +++ b/vterm-module.c @@ -924,6 +924,14 @@ void term_finalize(void *object) { } static int osc_callback(const char *command, size_t cmdlen, void *user) { + /* osc_callback (OSC = Operating System Command) */ + + /* We interpret escape codes that start with "51;" */ + /* "51;A" sets the current directory */ + /* "51;A" has also the role of identifying the end of the prompt */ + /* "51;E" executes elisp code */ + /* The elisp code is executed in term_redraw */ + Term *term = (Term *)user; char buffer[cmdlen + 1]; |
