Skip to content

Commit

Permalink
Update NotebookTestScript.dib
Browse files Browse the repository at this point in the history
  • Loading branch information
brettfo authored Jul 30, 2021
1 parent 066426b commit aa19c64
Showing 1 changed file with 13 additions and 45 deletions.
58 changes: 13 additions & 45 deletions NotebookTestScript.dib
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You'll notice a counter that appears and starts incrementing. After a second or

```
5
Error: Comamnd cancelled
Comamnd cancelled
```

#!csharp
Expand Down Expand Up @@ -65,7 +65,7 @@ display(new { Name = "Developer", Salary = 42 }, "application/json");
# Execute the next cell and verify the following error appears:

```
Error: input.fsx (1,11)-(1,12) parse error Unexpected token '+' or incomplete expression
input.fsx (1,11)-(1,12) parse error Unexpected token '+' or incomplete expression
```

#!fsharp
Expand Down Expand Up @@ -154,56 +154,24 @@ let x = 1 +

#!markdown

# Support ANSI Codes

#!markdown

The output should look like:

<span style="color: rgb(0, 255, 0)">this should be green</span>

#!csharp

Console.Write("\x1b[38;2;0;255;0m");
Console.WriteLine("this should be green");
Console.Write("\x1b[0m");

#!markdown

The output should look like:

<span style="color: rgb(0, 255, 0)">this should also be green</span>

#!csharp

Console.Write("\x1b[38;2;0;255;0mthis should also be green\x1b[0m");

#!markdown

The output should look like:

<span style="color: rgb(0, 255, 0)">more green in stderr</span>

#!csharp

Console.Error.Write("\x1b[38;2;0;255;0m"); // set text color to green
Console.Error.WriteLine("more green in stderr");
Console.Error.Write("\x1b[0m"); // reset colors
# Complex console output

#!markdown

The output shoudl look like:

12
<span style="color:#00FF00">this should be green</span>

text
this is white

34
<span style="color:#FF0000">this should be red</span>

#!csharp

Console.Write("1");
Console.WriteLine("2");
"text".Display();
Console.Write("3");
Console.WriteLine("4");
Console.Write("\x1b[38;2;0;255;0m");
Console.WriteLine("this should be green");
Console.Write("\x1b[0m");
"this is white".Display();
Console.Error.Write("\x1b[38;2;255;0;0m");
Console.Error.WriteLine("this should be red");
Console.Error.Write("\x1b[0m");

0 comments on commit aa19c64

Please sign in to comment.