PyInquirer icon indicating copy to clipboard operation
PyInquirer copied to clipboard

Allow choice of Pointer

Open Tarzan5 opened this issue 6 years ago • 6 comments

For the list/checkbox types, the pointer is the unicode character U+276F. Windows command prompt seems to have an issue with displaying that character (see screenshot). Note: Notepad displays the symbol correctly using the same font, so it's not an issue with the font. Would be nice if we could choose the pointer symbol too, just like we can choose the 'qmark' symbol. Thanks.

capture2

Tarzan5 avatar Nov 09 '18 12:11 Tarzan5

Sorry for late response, I actually looked into this, I noticed that is the default pointer from prompt_toolkit

CITGuru avatar Nov 14 '18 18:11 CITGuru

Can you change the default?

rigogsilva avatar Nov 16 '18 23:11 rigogsilva

@rigogsilva I am not sure, I did some research on it and I notice there was nothing like that. So I am trying to look at the python-prompt-toolkit - 1.0, if we could change this.

CITGuru avatar Nov 17 '18 05:11 CITGuru

I dont think we could change it for now, If any one has an idea how to, you can suggest a bug fix

CITGuru avatar Nov 21 '18 05:11 CITGuru

Hello, we can change the pointer by modifying \u276f to other character PyInquirer 1.0.3:

  • list.py: tokens.append((T.Pointer if selected else T, ' \u276f ' if selected else ' '))
  • checkbox.py: if pointed_at: tokens.append((T.Pointer, ' \u276f ', select_item))

BlackJack1412 avatar Apr 29 '20 15:04 BlackJack1412

Hello Guys! I'm having the same problem as you. The list pointer is not showing up in my terminal :( I changed the symbol using the @BlackJack1412 solution, but has anyone implemented a solution and doesn't require a source code change?

mateoglzc avatar May 31 '22 14:05 mateoglzc