Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8338169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:30:31+00:00 2026-06-09T04:30:31+00:00

How to work with terminal window in mode when it is possible to operate

  • 0

How to work with terminal window in mode when it is possible to operate with each cell by it coords? I dont know how this mode named, thats why I cant google it. Also, I know about this approach, but now it is interesting for me how to work with it low level.

UPD:
Ok, I read all the termios man page and some other docs, and the only thing I could say now – I still dont know how to make rotating bar somewhere in the terminal, ie by frames: – \ | / – .:(

UPD2
Oh, I suddenly found it there:

import sys
import time

f='-\\|/'

for i in range(10):
    sys.stdout.write("\r{0}".format(f[i%4]))
    sys.stdout.flush()
    time.sleep(0.5)

So, the last question in this topic – what about any coordinates only with termios?

Subquestion[SOLVED]:

When I use curses ie the second code listing from this post – it makes my semi-transparent terminal window no-transparent, when top does not do this. How to keep it transparent?

solution: insert curses.use_default_colors() in the first string of def pbar(window):.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:30:33+00:00Added an answer on June 9, 2026 at 4:30 am

    If you want a lower level library than curses, you can use termios (although I would suspect htop’s UI is written mainly with curses)

    The Python docs page on termios are minimal as the module pretty much just exposes the underlying UNIX’y termios library, so non-Python-specific docs are the main source of information, like this guide on termios, or the termios.h header (or run man termios in a shell)

    Of course the challenge is translating the code into Python, but usually the translation is reasonably straight forward (the function calls are usually very similar, and the bit-swizzling/bit-masking is often identical)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few Resque jobs running, each started in a separate terminal window
Consider the following scenario: a FIFO named test is created. In one terminal window
I'm running emacs on a terminal mode (no window system) emacs -nw. I've few
Possible Duplicate: Open a new prompt/terminal window from Java Is it possible to open
C-. doesn't work in the terminal when I bind it to a command in
Every time I open my Terminal application at work it starts from a clean
Work on this small test application to learn threading/locking. I have the following code,
How do I use the terminal to open another terminal window but with a
At work, in csh, I use this alias in my .alias file: alias n
With visual studio there is an start menu option open a terminal window with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.