nushell/src/shell
Barnaby Keene 0412c3a2f8 fix: remove the additional characters from highlighter
This resolves a small integration issue that would make custom prompts problematic (if they are implemented). The approach was to use the highlighter implementation in Helper to insert colour codes to the prompt however it heavily relies on the prompt being in a specific format, ending with a `> ` sequence. However, this should really be the job of the prompt itself not the presentation layer.

For now, I've simply stripped off the additional `> ` characters and passed in just the prompt itself without slicing off the last two characters. I moved the `\x1b[m` control sequence to the prompt creation in `cli.rs` as this feels like the more logical home for controlling what the prompt looks like. I can think of better ways to do this in future but this should be a fine solution for now.

In future it would probably make sense to completely separate prompts (be it, internal or external) from this code so it can be configured as an isolated piece of code.
2019-10-08 21:39:58 +01:00
..
completer.rs Merge pull request #578 from jonathandturner/fix_577 2019-09-03 07:09:26 +12:00
filesystem_shell.rs Filesystem shell can't cd into files. Ever. 2019-09-24 15:34:30 -05:00
help_shell.rs Rename origin to anchor 2019-09-29 18:13:56 +13:00
helper.rs fix: remove the additional characters from highlighter 2019-10-08 21:39:58 +01:00
shell.rs Revert "Revert "Migrate most uses of the Span concept to Tag"" 2019-09-14 11:30:24 -05:00
shell_manager.rs Revert "Revert "Migrate most uses of the Span concept to Tag"" 2019-09-14 11:30:24 -05:00
value_shell.rs Rename origin to anchor 2019-09-29 18:13:56 +13:00