listpick 0.1.16.5__py3-none-any.whl → 0.1.16.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of listpick might be problematic. Click here for more details.

@@ -16,27 +16,9 @@ from datetime import datetime
16
16
  import logging
17
17
 
18
18
  logger = logging.getLogger('picker_log')
19
- import select
20
- import tty
21
19
  from listpick.utils.user_input import get_char, open_tty
22
20
  from listpick.utils import keycodes
23
21
 
24
- # def open_tty():
25
- # """ Return a file descriptor for the tty that we are opening"""
26
- # tty_fd = os.open('/dev/tty', os.O_RDONLY)
27
- # tty.setraw(tty_fd)
28
- # return tty_fd
29
- #
30
- # def get_char(tty_fd, timeout: float = 0.2) -> int:
31
- # """ Get character from a tty_fd with a timeout. """
32
- # rlist, _, _ = select.select([tty_fd], [], [], timeout)
33
- # if rlist:
34
- # # key = ord(tty_fd.read(1))
35
- # key = ord(os.read(tty_fd, 1))
36
- # else:
37
- # key = -1
38
- # return key
39
-
40
22
  def input_field(
41
23
  stdscr: curses.window,
42
24
  usrtxt:str="",
@@ -126,7 +108,7 @@ def input_field(
126
108
  offscreen_x, offscreen_y = False, False
127
109
  orig_x, orig_y = x, y
128
110
 
129
- tty_fd = open_tty()
111
+ tty_fd, saved_terminal_state = open_tty()
130
112
 
131
113
  # Input field loop
132
114
  while True:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: listpick
3
- Version: 0.1.16.5
3
+ Version: 0.1.16.6
4
4
  Summary: Listpick is a powerful TUI data tool for creating TUI apps or viewing/comparing tabulated data.
5
5
  Home-page: https://github.com/grimandgreedy/listpick
6
6
  Author: Grim
@@ -10,7 +10,7 @@ listpick/ui/build_help.py,sha256=IpN4tX4U8ET3icRoTlF389VqVjVcPAon617vgstlPAc,107
10
10
  listpick/ui/draw_screen.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  listpick/ui/footer.py,sha256=NcdH1uO_ma91m0qCczyQZ3zGrexfkiEnwDf5E4tHSMk,15089
12
12
  listpick/ui/help_screen.py,sha256=zbfGIgb-IXtATpl4_Sx7nPbsnRXZ7eiMYlCKGS9EFmw,5608
13
- listpick/ui/input_field.py,sha256=ylf3fiLXdAD4pueHWfzIrlwaRb9f5zm8f1UGkEPBxgM,30539
13
+ listpick/ui/input_field.py,sha256=scJjvmSS0QqeDbCky7_0Zgt35Aki7gezRJkrQROlLg4,30034
14
14
  listpick/ui/keys.py,sha256=1NCsOPFxhNuVPbO5vflcArNZ1jbBBerPQ3oZUAZDyPs,13682
15
15
  listpick/ui/picker_colours.py,sha256=FFsyny_q0mGO6u7B1n7anuReBtP7Jw6LrgX5ycN-MRM,13413
16
16
  listpick/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -31,9 +31,9 @@ listpick/utils/sorting.py,sha256=WZZiVlVA3Zkcpwji3U5SNFlQ14zVEk3cZJtQirBkecQ,532
31
31
  listpick/utils/table_to_list_of_lists.py,sha256=XBj7eGBDF15BRME-swnoXyOfZWxXCxrXp0pzsBfcJ5g,12224
32
32
  listpick/utils/user_input.py,sha256=L3ylI7nnuFM_TP1XKwpiKpxUSkNb2W5cr7mJjTmv_6E,4582
33
33
  listpick/utils/utils.py,sha256=nsR6orCBQy3rTXrCweq8cV-RzRVU15v3J9NclPeAOJk,13741
34
- listpick-0.1.16.5.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
35
- listpick-0.1.16.5.dist-info/METADATA,sha256=useNXbMMcFxOxa1hv41MUEverzQb3DncwpM0yV_PY4c,8128
36
- listpick-0.1.16.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
- listpick-0.1.16.5.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
38
- listpick-0.1.16.5.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
39
- listpick-0.1.16.5.dist-info/RECORD,,
34
+ listpick-0.1.16.6.dist-info/licenses/LICENSE.txt,sha256=2mP-MRHJptADDNE9VInMNg1tE-C6Qv93Z4CCQKrpg9w,1061
35
+ listpick-0.1.16.6.dist-info/METADATA,sha256=q67Zxlt_QP9xQwlQfG07KEBULpHt2r6E_U3xeTAjp5c,8128
36
+ listpick-0.1.16.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
37
+ listpick-0.1.16.6.dist-info/entry_points.txt,sha256=-QCf_BKIkUz35Y9nkYpjZWs2Qg0KfRna2PAs5DnF6BE,43
38
+ listpick-0.1.16.6.dist-info/top_level.txt,sha256=5mtsGEz86rz3qQDe0D463gGjAfSp6A3EWg4J4AGYr-Q,9
39
+ listpick-0.1.16.6.dist-info/RECORD,,