← All recipes
Moderne licensed

Use \e escape sequence

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.UseEscapeSequenceEArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Replace \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.UseEscapeSequenceE

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet