Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
curses library
#1
Hi there,
i am new in programming and i am using a rpi 3 b with python 2.7 to control a couple of servo motors but i have a couple of problems with my code.
I want to use keyboard inputs to activate my gpio's.
I have done some research and i found a library that can help me do that but i am getting all kind of bugs. Basically i want the keyboard controls i type to go in a variable (i use raw_input). I dont know though how to write the keyboard keys in the code. For example i know that up arrow is KEY_UP, down arrow is KEY_DOWN etc. Is there any way that i can see how to express each key to my code?
Or any different idea on how to make this work ?
Thanks in advance
Reply


Messages In This Thread
curses library - by autompav96 - Mar-01-2019, 04:06 PM
RE: curses library - by Larz60+ - Mar-01-2019, 10:44 PM
RE: curses library - by woooee - Mar-02-2019, 02:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I want to be able to scroll up in curses to see previous text. Caiden 1 775 Jul-28-2023, 01:15 PM
Last Post: deanhystad
  curses issue otalado 2 2,757 Jun-29-2021, 02:07 PM
Last Post: tmz
  How to make curses.border() use A_BOLD atttribute? pjfarley3 0 4,850 Feb-03-2021, 11:22 PM
Last Post: pjfarley3
  Curses script doesn't work wavic 1 4,167 Jan-08-2021, 09:11 PM
Last Post: wavic
  Why aren't all curses panel functions supported in python curses.panel? pjfarley3 2 2,678 Jul-22-2020, 11:08 PM
Last Post: pjfarley3
  curses key codes not working jgrillout 0 3,031 Feb-11-2019, 01:46 AM
Last Post: jgrillout
  Pretty table and curses? MuntyScruntfundle 0 2,900 Oct-16-2018, 10:22 AM
Last Post: MuntyScruntfundle
  curses.initscr doesn't work zaphod424 3 9,819 Feb-28-2018, 12:36 PM
Last Post: Gribouillis
  Curses could not find terminal Solstice 13 17,098 Jan-06-2018, 07:56 AM
Last Post: Gribouillis
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,816 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020