Git Product home page Git Product logo

Comments (10)

funnelweb avatar funnelweb commented on May 27, 2024

BTW the first few lines of the trace won't help, if anything it would be some endless looping at the end of a very long trace. you would have to somehow catch the trace from the fsharpi process, don't know how to do that.

from fsharp.

edumunoz avatar edumunoz commented on May 27, 2024

OK. Not sure what else I can do to help.

from fsharp.

funnelweb avatar funnelweb commented on May 27, 2024

Did you try

fsharpi --readline-

Notice the - after the flag

from fsharp.

funnelweb avatar funnelweb commented on May 27, 2024

With this I get

bash-3.2$ fsharpi --readline-

Microsoft (R) F# 3.0 Interactive version (Mono build)
Copyright (c) Microsoft Corporation. All Rights Reserved.

For help type #help;;

1+1;;
val it : int = 2

from fsharp.

funnelweb avatar funnelweb commented on May 27, 2024

what's the best way to tell if a process should suppress an implementation of readline support when running on Mono? e.g. some method in Mono.Posix?

from fsharp.

edumunoz avatar edumunoz commented on May 27, 2024

--readline- solves the issue. Thanks a lot. Keep up the awesome work ;)

from fsharp.

funnelweb avatar funnelweb commented on May 27, 2024

Turned off readline by default when running as background non-console process

https://github.com/fsharp/fsharp/commit/2d604e1b66b61d2e6c4238cd4fa463ac9f0ca0c1

Detected by comparing foreground/background colors are equal. If there is a better way send a pull request.

from fsharp.

migueldeicaza avatar migueldeicaza commented on May 27, 2024

I think you want to probe the TERM variable to be "dumb" or not.

If the variable is not dumb, it means that you have editing capabilities.

from fsharp.

funnelweb avatar funnelweb commented on May 27, 2024

Thanks! Strangely it is "dumb" in Emacs and null when fsharpi is run from MonoDevelop.

System.Environment.GetEnvironmentVariable("TERM");;

val it : string = null

from fsharp.

migueldeicaza avatar migueldeicaza commented on May 27, 2024

If TERM is set, it means that you are running under a full fledged pseudo-terminal (Console.IsOutput/Input Redirected) will both be false. Once you have determined that you are on a pseudo-terminal, you can use TERM to determine the kind, dumb meaning "no terminal".

from fsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.