Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect colors/Lack of arrow/home/end key support #47

Open
Melandel opened this issue Jul 6, 2020 · 1 comment
Open

Incorrect colors/Lack of arrow/home/end key support #47

Melandel opened this issue Jul 6, 2020 · 1 comment

Comments

@Melandel
Copy link

Melandel commented Jul 6, 2020

Hello,

I have trouble having both colors and arrow/home/end keys work in vifm.vim.

With the default termwintype, I have:

  • incorrect colors
  • support for arrow keys

When trying to get the colors to work through this issue on vim/vim, someone suggested that I use set termwintype=conpty instead, which granted me:

  • correct colors
  • no more support for arrow/home/end keys

Since then I tried using :term with both termwintype values, and found out that arrow/home/end keys worked.

Since :term has support for arrow/home/end keys regardless of termwintype values, but :Vifm doesn't, I figured this was the appropriate place for my issue.

Here's a screenshot:
image

  • on the left, set termwintype= with ability to use <up>, <down>, <left>, <right>, <home> and <end> but incorrect colors
  • on the right, set termwintype=conpty with correct colors but <up>, <down>, <left>, <right>, <home> and <end> don't seem to respond

I am using gvim v8.2.1127 on Windows10.

Is there a way for me to have both correct colors, and arrow/home/end keys work ?

@xaizek
Copy link
Member

xaizek commented Jul 7, 2020

Hi,

If I set termwintype=conpty on Windows10 on Vim from here, I get "ConPTY isn't supported" message and can't test this.

I think embedding shouldn't matter for terminal applications. If vifm works outside Vim and doesn't inside ConPTY, my guess would be that something is wrong with the embedding (maybe with ConPTY itself). Or maybe PDCurses needs to be taught to work with ConPTY (if you find another application that uses PDCurses, you could test how it handles input).

Vifm does configure terminal a bit, but not sure if that matters for embedding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants