Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Full Screen Text I/O
#1
I just finished an intro to Python course at my local library. I took it so I can write programs for my enjoyment.

Compared with some of the programming languages I've used in my past I.T. career, I am impressed with the power of the Python language. The one thing that I was taken aback on was the lack of native text screen I/O support. Pygame does a great job handling pixel and images but the text handling is clunky at best and some of the font rendering is a bit coarse.

Some of the programs I plan to write will use full screen text I/O in a console, with specific print row/ column placement. I've come across a few screen text-only modules using VT100 output, something I haven't programmed in since my AS/400 days, but I think that's a step backwards.

What module would one recommend to simulate what I'm looking for? I'm in the process of writing my own full screen console output module that uses a list to "print" to and load in its entirety whenever that list is changed. I use an os module call to clear the screen, but that results in an annoying flicker.
Reply
#2
Welcome to the forum!

You can try curses module.
Or some 3-th party modules like asciimatics, blessings, npyscreen or blessed.

You may go with the last one and try it. The previous ones are for TUI programming.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
(Sep-30-2018, 06:00 PM)wavic Wrote: Welcome to the forum!

You can try curses module.
Or some 3-th party modules like asciimatics, blessings, npyscreen or blessed.

You may go with the last one and try it. The previous ones are for TUI programming.

Hi Wavic. Thanks for the welcome.

Curses is the VT100 module I mentioned before. I didn't have the name handy at the time I wrote my original post.

I'll look at the other ones.
Reply
#4
I've looked into the suggestions given and found varying levels of success with each with the exception of asciimatics which bombs completely. I don't think it can run under 3.7 32bit Python. Supported variations stop at 3.6.

The only solution that works 100% is my own homemade one but the flicker on the console window is damned annoying. I also cannot do color with it.

I really hate to use pygame as I find text placement to be clunky. It would be nice if Python had a more robust STDIN/STDOUT set of commands.
Reply
#5
The best thing of all these modules is that you can open the code and modify it as you want. Perhaps if you decide to do it and have any success it will meet your need completely. It's better instead of writing all from the ground up.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Turtle.setpos() vs text position on screen query ElectronWrangler 0 1,624 Nov-26-2022, 02:39 AM
Last Post: ElectronWrangler
  bython on full screen editor ErnestTBass 1 2,072 Dec-02-2020, 06:25 PM
Last Post: Larz60+
  Using Spyder Full Screen Debugger ErnestTBass 0 1,476 Aug-20-2020, 08:17 PM
Last Post: ErnestTBass
  Start a full screen window marted 4 3,905 Nov-14-2019, 11:03 AM
Last Post: marted
  wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' Shadower 1 6,186 Feb-06-2019, 01:25 AM
Last Post: woooee
  Full Screen Display daven2411 1 2,980 Oct-24-2018, 04:24 PM
Last Post: Larz60+
  Change on-screen text Panda 5 3,848 Jun-08-2018, 03:19 PM
Last Post: Grok_It

Forum Jump:

User Panel Messages

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