Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7155

Re: A simple way to print few line stuck to the same position

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From TheSaint <nobody@nowhere.net.no>
Newsgroups comp.lang.python
Subject Re: A simple way to print few line stuck to the same position
Followup-To comp.lang.python
Date Tue, 07 Jun 2011 22:08:16 +0800
Organization Aioe.org NNTP Server
Lines 21
Message-ID <islbcg$83a$1@speranza.aioe.org> (permalink)
References <is82r1$3rn$1@speranza.aioe.org> <4de79b45$0$29996$c3e8da3$5496439d@news.astraweb.com> <isaes8$ij4$1@speranza.aioe.org> <4de94acc$0$49184$e4fe514c@news.xs4all.nl> <isd41t$koc$1@speranza.aioe.org> <4deab929$0$49044$e4fe514c@news.xs4all.nl>
NNTP-Posting-Host j+tlNLhYp+qkC421IdmA7w.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Complaints-To abuse@aioe.org
User-Agent KNode/4.4.11
X-Notice Filtered by postfilter v. 0.8.2
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:7155

Followups directed to: comp.lang.python

Show key headers only | View raw


Hans Mulder wrote:

> If you use curses, you must initialize it by calling curses.initscr(),
> which returns a "WindowObject" representing the konsole window.  To
> put things on the screen, you call methods on this object.  Keep in
> mind that a "window" in curses jargon is just a rectangle inside
> your konsole window

I've learned great things from you. Thank you very much.
The curse window I could realize it immediately that it's a part of console 
screen, in curses module. Usually it's represented as blue box with some 
shadow effect :)
Deleting old writing it's another good point.
Actually, I reduced in a simplier solution with one line report :P. I'll 
look into curses for some better visual effects.
Playing with tabs (vertical and horizontal) I think it won't be a reliable 
method, unless when the position it would stick to the upper left corner of
 the console.

--
goto /dev/null

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

A simple way to print few line stuck to the same position TheSaint <nobody@nowhere.net.no> - 2011-06-02 21:22 +0800
  Re: A simple way to print few line stuck to the same position Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-02 14:16 +0000
    Re: A simple way to print few line stuck to the same position TheSaint <nobody@nowhere.net.no> - 2011-06-03 19:00 +0800
      Re: A simple way to print few line stuck to the same position Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-03 12:42 +0000
      Re: A simple way to print few line stuck to the same position Hans Mulder <hansmu@xs4all.nl> - 2011-06-03 22:57 +0200
        Re: A simple way to print few line stuck to the same position TheSaint <nobody@nowhere.net.no> - 2011-06-04 19:14 +0800
          Re: A simple way to print few line stuck to the same position Hans Mulder <hansmu@xs4all.nl> - 2011-06-05 01:00 +0200
            RE: A simple way to print few line stuck to the same position "Sarcar, Shourya C (GE Healthcare)" <shourya.sarcar@med.ge.com> - 2011-06-05 09:10 +0530
              Re: A simple way to print few line stuck to the same position Hans Mulder <hansmu@xs4all.nl> - 2011-06-05 14:40 +0200
            Re: A simple way to print few line stuck to the same position TheSaint <nobody@nowhere.net.no> - 2011-06-07 22:08 +0800

csiph-web