Is it possible to add new line once you press the enter button in GitBash?

194 views
Skip to first unread message

Zoran Jovanovski

unread,
Oct 6, 2021, 9:09:33 AM10/6/21
to git-for-windows
Hello guys,

I'm curious whether you can add new lines in GitBash? I've attached a file containing a print screen of logs from the server for your convenience. Basically, each time I run a command in our platform a batch of logs appear on the screen referencing what happened. I would like to be able to add some spaces by pressing the enter button before I run another command. This is really good for visual purposes because there will be space between the logs and you can easily differentiate logs for each command/action you make. This works pretty well in the zsh terminal. At the moment the cursor is dead and there's no interaction from it.

Thanks
Zoki
Logs.png

Konstantin Khomoutov

unread,
Oct 6, 2021, 12:56:40 PM10/6/21
to Zoran Jovanovski, git-for-windows
On Wed, Oct 06, 2021 at 06:09:33AM -0700, Zoran Jovanovski wrote:

> I'm curious whether you can add new lines in GitBash?
[...]
> Basically, each time I run a command in our platform a batch of logs appear
> on the screen referencing what happened.
[...]
> This works pretty well in the zsh terminal.
> At the moment the cursor is dead and there's no interaction from it.

Do I understand correctly that the following facts hold true?

* When plain zsh is running in a GitBash window, pressing Enter works as
intended (zsh prints a new prompt).

* When an application is run in the foreground in that same GitBash window,
pressing Enter has no effect on the text output you're observing.

* You would like if pressing Enter while there is an active application
running in the foreground in a GitBash window to have a blank like added to
the output as well?

Reply all
Reply to author
Forward
0 new messages