0

I repaired line wrapping in my cygwin using of the solution in Cygwin bash prompt is wrapping lines on the same line. However, I encountered another problem.

When a long command is posted, it's split into separate lines, as expected. For this example, I'm using a mock command "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore". Example 1

However, when I start removing characters from the end of it, the cursor doesn't appear at the end of the previous line. Instead, it appears at the end of the terminal aka last column. Example 2

From the user's point of view, I see that I need to first remove the whitespaces up until the word ut and then write ", but when I do that, I in fact remove also cididunt ut". It looks like even though the cursor is displayed in wrong place, it removes characters as if it was initialy placed at the end of the text. Example 3

How to fix it, so that the cursor is always displayed where it really should be?

ashrasmun
  • 101

0 Answers0