dotnet / dotnet/fsharp

F# Interactive window does not support Console.Clear() etc.

Open
#5,952 3 comments 0 reactions 0 assignees View on GitHub
Area-VS-FSI Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

I would like to provide a simple console based progress bar for users running long running tasks in FSI. To do this I can clear the line and print the output. This works in normal FSI.exe console as well as in Ionide F# Interative Terminal but does not work in Visual Studio F# Interactive.

#### Repro steps
1. Send "System.Console.Clear()" to FSI

#### Expected behavior
FSI window is cleared.

#### Actual behavior
A System.IO.IOException is thrown.

#### Known workarounds
Using Visual Studio Code instead of Visual Studio

#### Related information
* Windows 10
* Visual Studio 2017 Version 15.8.5
* Visual F# Tools for F# 4.5 15.8.0.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.