Skip to content

Support CBT and CHT control sequences in the emulator and terminal model#331

Open
Ayman Bagabas (aymanbagabas) wants to merge 1 commit into
JetBrains:masterfrom
aymanbagabas:cbt-cht
Open

Support CBT and CHT control sequences in the emulator and terminal model#331
Ayman Bagabas (aymanbagabas) wants to merge 1 commit into
JetBrains:masterfrom
aymanbagabas:cbt-cht

Conversation

@aymanbagabas

Copy link
Copy Markdown
Contributor

When a terminal advertises itself as xterm, it is expected to support the CBT (Cursor Backward Tab). However, JediTerm's emulator did not support this control sequence, which caused some applications to behave incorrectly when running in JediTerm.

This commit adds support for the CBT control sequence in the JediEmulator class, as well as the corresponding CHT (Cursor Forward Tab) control sequence. The Terminal interface is updated to include methods for finding the previous and next tab stops, and the JediTerminal class implements these methods using its existing tabulator functionality.

Fixes: #328

@aymanbagabas

Copy link
Copy Markdown
Contributor Author

Sergey Simonchik (@segrey) Let me know if you want me to make any changes 🙂

@mikeschinkel

Copy link
Copy Markdown

As a JetBrains superfan for almost two decades, this issue is a big problem for me. I really hope you will seriously consider addressing this issue soon.

When a terminal advertises itself as `xterm`, it is expected to support the `CBT` (Cursor Backward Tab). However, JediTerm's emulator did
not support this control sequence, which caused some applications to behave incorrectly when running in JediTerm.

This commit adds support for the `CBT` control sequence in the `JediEmulator` class, as well as the corresponding `CHT` (Cursor Forward Tab)
control sequence. The `Terminal` interface is updated to include methods for finding the previous and next tab stops, and the `JediTerminal`
class implements these methods using its existing tabulator functionality.

Fixes: JetBrains#328
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CBT (Cursor Backward Tabulation) support

2 participants