reported by @petermattis
Describe the problem
When interactively editing a sql query that spans multiple terminal lines, the cursor positioning gets confused.
To Reproduce
TERM=xterm or TERM=xterm-256color using macOS terminal or iterm:

Expected behavior
positioning is correct.
Additional data / screenshots
- the problem does not occur when using a linux terminal e.g.
st.
- the problem does not occur on macOS when setting
TERM to vt100
- the problem still occurs when logging in from the macOS terminal into a remote linux system
- the problem still occurs when running through
tmux
- the problem still occurs when running through
mosh
Environment:
crdb 21.2
Jira issue: CRDB-10442
Epic CRDB-22182
reported by @petermattis
Describe the problem
When interactively editing a sql query that spans multiple terminal lines, the cursor positioning gets confused.
To Reproduce
TERM=xtermorTERM=xterm-256colorusing macOS terminal or iterm:Expected behavior
positioning is correct.
Additional data / screenshots
st.TERMtovt100tmuxmoshEnvironment:
crdb 21.2
Jira issue: CRDB-10442
Epic CRDB-22182