fsi.AddPrinter

Category: visual studio fsharp

Question

Captain Kernel on Fri, 30 Oct 2015 02:59:51


Where is the documentation for the AddPrinter method and is there a list of all supported/available methods like AddPrinter?

Everything I've seen seems to be passed on from some other web article, which in turn is from some other web article - can't find any official documentation for the list and types of all the available methods.

For example is there an fsi method that tells me how wide the FSI interactive window currently is?

Cap'n

Replies

Mr. Tines on Fri, 30 Oct 2015 08:21:14


The method fsi.AddPrinter is described in Table 19-5 in the Expert F# 3.0 book; and is used in many examples.

As for the window size, while there is a fsi.PrintWidth property, this just defaults to an 80 column environment and would need to be explicitly set by something that knows about the hosting.