Python Forum
Curses could not find terminal
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Curses could not find terminal
#1
I want to start programming with the module curses in Python on my
Raspberry pi3(with rasbian), But I already ran into a problem.

I wrote my first 2 lines of code in IDLE3 and executed them:

import curses
stdscr = curses.initscreen
but I got this output:
Output:
Traceback (most recent call last): File "/home/pi/Desktop/programms/Tools/curse.py", line 3, in <module> curses.initscr() File "/usr/lib/python3.5/curses/__init__.py", line 30, in initscr fd=_sys.__stdout__.fileno()) _curses.error: setupterm: could not find terminal
I already know that there is the way to execute it in the linux terminal,
but it would be just way to much work if I want to test some code every 10 seconds and I have no Idea how to even do that.
If there is no other way, i'll do it with the linux terminal, if someone could
explain it to me (please :) ).
Reply


Messages In This Thread
Curses could not find terminal - by Solstice - Jan-04-2018, 02:18 PM
RE: Curses could not find terminal - by Gribouillis - Jan-04-2018, 04:13 PM
RE: Curses could not find terminal - by Solstice - Jan-04-2018, 04:22 PM
RE: Curses could not find terminal - by Gribouillis - Jan-04-2018, 04:32 PM
RE: Curses could not find terminal - by Solstice - Jan-04-2018, 05:27 PM
RE: Curses could not find terminal - by Gribouillis - Jan-04-2018, 06:25 PM
RE: Curses could not find terminal - by Solstice - Jan-04-2018, 08:02 PM
RE: Curses could not find terminal - by Gribouillis - Jan-04-2018, 08:57 PM
RE: Curses could not find terminal - by Solstice - Jan-05-2018, 01:56 PM
RE: Curses could not find terminal - by Gribouillis - Jan-05-2018, 03:28 PM
RE: Curses could not find terminal - by sparkz_alot - Jan-05-2018, 04:01 PM
RE: Curses could not find terminal - by Gribouillis - Jan-05-2018, 04:23 PM
RE: Curses could not find terminal - by sparkz_alot - Jan-05-2018, 04:56 PM
RE: Curses could not find terminal - by Gribouillis - Jan-06-2018, 07:56 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 2 2,079 Jul-11-2024, 02:21 PM
Last Post: bsmorgan
  curses issue otalado 2 3,765 Jun-29-2021, 02:07 PM
Last Post: tmz
  How to make curses.border() use A_BOLD atttribute? pjfarley3 0 6,363 Feb-03-2021, 11:22 PM
Last Post: pjfarley3
  Curses script doesn't work wavic 1 5,411 Jan-08-2021, 09:11 PM
Last Post: wavic
  Why aren't all curses panel functions supported in python curses.panel? pjfarley3 2 3,696 Jul-22-2020, 11:08 PM
Last Post: pjfarley3
  curses library autompav96 2 4,001 Mar-02-2019, 02:12 AM
Last Post: woooee
  curses key codes not working jgrillout 0 3,595 Feb-11-2019, 01:46 AM
Last Post: jgrillout
  Pretty table and curses? MuntyScruntfundle 0 3,638 Oct-16-2018, 10:22 AM
Last Post: MuntyScruntfundle
  curses.initscr doesn't work zaphod424 3 11,073 Feb-28-2018, 12:36 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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