Home
last modified time | relevance | path

Searched refs:CSI_ARG (Results 1 – 3 of 3) sorted by relevance

/haiku/src/apps/serialconnect/libvterm/src/
H A Dpen.c74 col->red = CSI_ARG(args[0]); in lookup_colour()
75 col->green = CSI_ARG(args[1]); in lookup_colour()
76 col->blue = CSI_ARG(args[2]); in lookup_colour()
224 switch(arg = CSI_ARG(args[argi])) { in vterm_state_setpen()
264 state->pen.font = CSI_ARG(args[argi]) - 10; in vterm_state_setpen()
305 value = CSI_ARG(args[argi]) - 30; in vterm_state_setpen()
316 …argi += 1 + lookup_colour(state, CSI_ARG(args[argi+1]), args+argi+2, argcount-argi-2, &state->pen.… in vterm_state_setpen()
328 value = CSI_ARG(args[argi]) - 40; in vterm_state_setpen()
337 …argi += 1 + lookup_colour(state, CSI_ARG(args[argi+1]), args+argi+2, argcount-argi-2, &state->pen.… in vterm_state_setpen()
349 value = CSI_ARG(args[argi]) - 90 + 8; in vterm_state_setpen()
[all …]
H A Dstate.c1016 col = argcount < 2 || CSI_ARG_IS_MISSING(args[1]) ? 1 : CSI_ARG(args[1]); in on_csi()
1035 switch(CSI_ARG(args[0])) { in on_csi()
1081 switch(CSI_ARG(args[0])) { in on_csi()
1217 col = argcount < 2 || CSI_ARG_IS_MISSING(args[1]) ? 1 : CSI_ARG(args[1]); in on_csi()
1252 set_mode(state, CSI_ARG(args[0]), 1); in on_csi()
1257 set_dec_mode(state, CSI_ARG(args[0]), 1); in on_csi()
1274 set_mode(state, CSI_ARG(args[0]), 0); in on_csi()
1279 set_dec_mode(state, CSI_ARG(args[0]), 0); in on_csi()
1313 request_dec_mode(state, CSI_ARG(args[0])); in on_csi()
1364 … state->scrollregion_bottom = argcount < 2 || CSI_ARG_IS_MISSING(args[1]) ? -1 : CSI_ARG(args[1]); in on_csi()
[all …]
/haiku/src/apps/serialconnect/libvterm/include/
H A Dvterm.h154 #define CSI_ARG(a) ((a) & CSI_ARG_MASK) macro
159 #define CSI_ARG_IS_MISSING(a) (CSI_ARG(a) == CSI_ARG_MISSING)
160 #define CSI_ARG_OR(a,def) (CSI_ARG(a) == CSI_ARG_MISSING ? (def) : CSI_ARG(a))
161 #define CSI_ARG_COUNT(a) (CSI_ARG(a) == CSI_ARG_MISSING || CSI_ARG(a) == 0 ? 1 : CSI_ARG(a))