[Mono-dev] Terminal config for mono csharp shell?
Cyd Haselton
chaselton at gmail.com
Sun Jun 7 00:39:16 UTC 2015
Additionally, running 'stty sane' after exiting the REPL solves the problem. Maybe there is a way to set the REPL to run a command on quitting?
On June 6, 2015 8:04:47 AM CDT, Cyd Haselton <chaselton at gmail.com> wrote:
>Are there any special terminal and/or shell settings I should set for
>the csharp shell?
>
>csharp works okay...minus some cursor jumping...but after quitting the
>console shell behaves oddly until I exit it and re-enter.
>
>Example:
>/home/kbox $ csharp
>Mono C# Shell, type "help;" for help
>
>Enter statements below.
>csharp> DateTime.Now
> 06/06/2015 13:00:31
>csharp> help
> "Static methods:
> Describe (object); - Describes the object's type
> LoadPackage (package); - Loads the given Package (like -pkg:FILE)
> LoadAssembly (assembly); - Loads the given assembly (like -r:ASSEMBLY)
> ShowVars (); - Shows defined local variables.
> ShowUsing (); - Show active using declarations.
> Prompt - The prompt used by the C# shell
> ContinuationPrompt - The prompt for partial input
> Time (() => { }); - Times the specified code
> print (obj); - Shorthand for Console.WriteLine
>quit; - You'll never believe it - this quits the
>repl!
> help; - This help text
>TabAtStartCompletes - Whether tab will complete even on empty
>lines
>"
>csharp> quit
>
>Environment shell after quitting:
>/home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $
>/home/kbox $ /home/kbox $ >
>/data/data/jackpal.androidterm/kbox2/bin/bash: \: not found
>/home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $ /home/kbox $
>/home/kbox $
>
>After exiting environment shell...you can't see the 'exit' command I
>typed:
>/home/kbox $ 127|u0_a186 at altev:/ $
>127|u0_a186 at altev:/ $
>127|u0_a186 at altev:/ $
>127|u0_a186 at altev:/ $
>127|u0_a186 at altev:/ $
>
>Re-entering the environment shell:
>127|u0_a186 at altev:/ $
>/data/data/jackpal.androidterm/kbox2/bin/kbox_shell
>/home/kbox $
>/home/kbox $
>/home/kbox $
>/home/kbox $
>--
>Sent from my Android device with K-9 Mail. Please excuse my brevity.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20150606/36563110/attachment.html>
More information about the Mono-devel-list
mailing list