Use \e escape sequence
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.UseEscapeSequenceEArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetReplace \u001b and \x1b escape sequences with \e. C# 13 introduced \e as a dedicated escape sequence for the escape character (U+001B).
Single recipemodernizationcsharpdotnetProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.UseEscapeSequenceEIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet