summaryrefslogtreecommitdiff
path: root/src/osc/osc.h
blob: 1d6680ea82a6d3be820fcff20211581077eadfce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef TERM_OSC_H
#define TERM_OSC_H

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

struct term;

#define TERM_OSC_MAX (16u << 20)

size_t term_osc_room(const struct term *t);
char *term_osc_tail(struct term *t);
bool term_osc_grow(struct term *t);

void term_osc_finish(struct term *t);

void term_osc_cleanup(struct term *t);

void term_osc8(struct term *t, const char *params);
void term_osc52(struct term *t, const char *params);
void term_osc_misc_dispatch(struct term *t, long code, const char *params);

const char *term_osc8_url_at(const struct term *t, int col, int row);
void term_osc8_cleanup(struct term *t);

#endif