Skip to content

Conversation

@glennblock
Copy link
Contributor

Adds @migueldeicaza's PR and some cleanup / fixing of tests.

migueldeicaza and others added 3 commits November 5, 2015 11:33
This provides command line editing, history, and reverse history
search using the Emacs keybindings, similar to bash.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is there prompt if it's not being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used.
On Mon, Nov 9, 2015 at 7:10 AM Filip W notifications@github.com wrote:

In src/ScriptCs.Hosting/FileConsole.cs
#1119 (comment):

@@ -35,9 +35,9 @@ public void WriteLine(string value)
this.AppendLine(value);
}

  •    public string ReadLine()
    
  •    public string ReadLine(string prompt)
    

why is there prompt if it's not being used?


Reply to this email directly or view it on GitHub
https://github.com/scriptcs/scriptcs/pull/1119/files#r44284665.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the whole method is

        public string ReadLine(string prompt)
        {
            var line = _innerConsole.ReadLine("");
            this.AppendLine(line);
            return line;
        }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just not used in the FileConsole.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah now i see, ok!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, it is part of the general interface
On Mon, Nov 9, 2015 at 7:51 AM Kristian Hellang notifications@github.com
wrote:

In src/ScriptCs.Hosting/FileConsole.cs
#1119 (comment):

@@ -35,9 +35,9 @@ public void WriteLine(string value)
this.AppendLine(value);
}

  •    public string ReadLine()
    
  •    public string ReadLine(string prompt)
    

It's just not used in the FileConsole.


Reply to this email directly or view it on GitHub
https://github.com/scriptcs/scriptcs/pull/1119/files#r44290238.

@filipw
Copy link
Member

filipw commented Nov 14, 2015

ok let's merge this, if something is still discovered to be wrong please make a corrective PR

I wanna play with this

filipw added a commit that referenced this pull request Nov 14, 2015
@filipw filipw merged commit caf2d1a into scriptcs:dev Nov 14, 2015
@adamralph adamralph changed the title Repl enhancement Provide editing capabilities using Mono.Terminal.GetLine. Nov 19, 2015
@adamralph adamralph added this to the v1.0 milestone Nov 19, 2015
@glennblock glennblock deleted the repl-enhancement branch December 26, 2015 23:57
@adamralph adamralph modified the milestones: v1.0, v0.16 Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants