two problems with terminator: vi and line spacing/cursor size
Karl Auer
kauer at biplane.com.au
Sun May 7 16:27:19 UTC 2023
On Sun, 2023-05-07 at 15:54 +0000, Marco Fioretti wrote:
> I need help with two separate problems with Gnome-Terminator, because
> I am honestly out of terms to search for
I can't help with more than a small clue on this bit:
> line 1: D
> line 2: hello world
> that is, pressing that key ADDS an extra line above the starting one,
> with a capital D inside. What on Earth happens here, and how to fix
> it?
This feels like a terminal emulation issue. The VT52 escape sequence
for left-arrow is ESC-D, the ANSI+reset is ESC-[-D, and ANSI+set is
ESC-O-D. I think pressing left arrow is generating an ESC-O-D sequence,
but the terminal is processing the sequence as separate inputs.
Probably because it expects ANSI+reset.
ESC drops you out of insert mode
O inserts a line above the current one
D is a D :-)
I would half expect you to get an A for up arrow, a B for down arrow
and a C for right arrow...
Try this:
- type "cat"
- press ENTER
- press left-arrow
I think you will see a caret, two left square brackets, and a "D".
Investigate whether your terminal supports alternative emulations.
This can also happen when the components of a sequence are too far
apart. The emulation may decide they are not a sequence. That seems
very unlikely in your case.
The line spacing could be another emulation problem, for example if the
emulation treats carriage return as newline.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
More information about the ubuntu-users
mailing list