chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.44k stars 135 forks source link

Remove new line when injecting clink #625

Closed narnaud closed 2 months ago

narnaud commented 2 months ago

I'm using clink in Terminal, and my current prompt.spacing is set to parse.

When starting a new terminal session, it always adds a new line (same with normal). The only way to remove the new line would be to change the settings to compact, but it's a bit too compact for me ;)

image

Would it be possible to not add this new line only when injecting clink? Keep the prompt.spacing settings the rest of the time.

chrisant996 commented 2 months ago

Clink is not adding that new line. It comes from CMD itself. See issue #488 for a detailed discussion and analysis.

narnaud commented 2 months ago

Thx, didn't realize it came from cmd.

chrisant996 commented 2 months ago

@narnaud In case you might not have noticed yet: The issue I linked has a sample script for getting rid of the blank line when clink.logo is none.