Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion sfte_dev.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
sfte -- single-file terminal emulator
v1.00
v1.01

Project URL: https://github.com/nihiL7331/sfte

Expand Down Expand Up @@ -5549,7 +5549,12 @@ static inline void _sfte_csi_exec_sgr(sfte_ctx *ctx, uint16_t *p, uint16_t cnt)
case 3: ctx->term.cur_attr |= _SFTE_ATTR_ITALIC; break;
case 4: ctx->term.cur_attr |= _SFTE_ATTR_UNDERLINE;
#if SFTE_UNDERLINE_EXTENDED
// Default to straight if no sub-param is provided
ctx->term.cur_ul_style = _SFTE_UNDERLINE_STYLE_STRAIGHT;

// If the sub-param exists and defines a style set it
if (i + 1 < cnt && p[i + 1] <= _SFTE_UNDERLINE_STYLE_DASHED)
ctx->term.cur_ul_style = p[++i];
#endif // SFTE_UNDERLINE_EXTENDED
break;
case 7: ctx->term.cur_attr |= _SFTE_ATTR_REVERSE; break;
Expand Down
Loading