microsoft / microsoft/terminal
git bash for windows in terminal does not break lines correctly
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
# Environment
```
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0
Windows Terminal Preview
Version: 1.7.572.0
```
Setting for git bash:
```
{
"name": "git bash",
"commandline": "%PROGRAMFILES%/git/usr/bin/bash.exe -i -l",
"icon": "%PROGRAMFILES%/Git/mingw64/share/git/git-for-windows.ico",
"startingDirectory" : "%USERPROFILE%"
},
```
# Steps to reproduce
1. Open a terminal window with git for windows bash
2. Do a rebase operation
# Expected behavior
Line breaks start at the beginning of the next line.
# Actual behavior
`git rod` is an alias for `git rebase --autostash -i origin/develop`
```
$git rod
error: could not apply 6b04f92e... DuplicateInput now supports generating code for arrays for the VfcTypeImplementation
Resolve all conflicts manually, mark them as resolved with
"git add/rm ", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".
Recorded preimage for 'src/App/Changelog.md'
Could not apply 6b04f92e... DuplicateInput now supports generating code for arrays for the VfcTypeImplementation
Auto-merging src/App/Tests/Silt.Plugin.SimpleTransformersGeneratorTests/GeneratorTests/DuplicateInputTransformerTests.cs
Auto-merging src/App/Plugins/Silt.Plugin.SimpleTransformersGenerator/GeneratorStrategy/DuplicateInputTransformer.cs
Auto-merging src/App/Changelog.md
CONFLICT (content): Merge conflict in src/App/Changelog.md
```
It seems that only the console without `\r` is not returning the operator to the beginnig of the line.
Not sure if there is a setting I need to configure for this to work.
Contributor guide
Research direction
Reproduce the issue using the listed Git Bash profile on Windows Terminal 1.7.572.0 and the `git rod` rebase command. Investigate how the terminal handles carriage returns and line breaks in the shown conflict output; done means each continuation line starts at the beginning of the next line without requiring an undocumented setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, git
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100