SSgrScope
Product

Product features · Semicolon SGR removal

01

Check resets and multiple style parameters while leaving unfinished sequences and non-SGR controls untouched.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

Semicolon SGR removal

● ● ●SgrScope●
A concrete starting point · Semicolon SGR removal ×
import re

SGR = re.compile(r"\x1b\[[0-9;]*m")

def strip_semicolon_sgr(text):
    if type(text) is not str:
        raise ValueError("sgr.type")
    return SGR.sub("", text)
# Other control sequences are deliberately left untouched.
✳Semicolon SGR removal
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗