[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

print help content in a Command Prompt

bkamrani

2/25/2008 9:15:00 AM

Hi,
This is a basic problem, but I want to print help content in a Command
Prompt in WinXP and scrolling back to see the first lines. If I start
a command prompt and run python, and then for example,

>>> help(list)

it starts showing the help, which can be controlled by page or raw
using Spacebar or Enter but after this ends, it seems that I can't
scroll back to see again the first lines.
In the Command Prompt Properties, layout tab, my Screen buffer size
is Width:80, Height:3000 and windows size 80x40 (W&H).

Any idea...? thanks in advance!!
/Ben
4 Answers

Chris

2/25/2008 10:12:00 AM

0

On Feb 25, 11:15 am, bkamr...@gmail.com wrote:
> Hi,
> This is a basic problem, but I want to print help content in a Command
> Prompt in WinXP and scrolling back to see the first lines. If I start
> a command prompt and run python, and then for example,
>
> >>> help(list)
>
> it starts showing the help, which can be controlled by page or raw
> using Spacebar or Enter but after this ends, it seems that I can't
> scroll back to see again the first lines.
> In the Command Prompt Properties, layout tab, my Screen buffer size
> is Width:80, Height:3000 and windows size 80x40 (W&H).
>
> Any idea...? thanks in advance!!
> /Ben

With an 80x300 Buffer on a 80x25 Window Size I can see the help
perfectly fine just by scrolling up on the scrollbar... It seems
rather odd that your prompt would act any differently.

Necmettin Begiter

2/25/2008 11:59:00 AM

0

25 February 2008 Monday 11:15:14 tarihinde bkamrani@gmail.com sunlari yazmisti:
> Hi,
> This is a basic problem, but I want to print help content in a Command
> Prompt in WinXP and scrolling back to see the first lines. If I start
> a command prompt and run python, and then for example,
>
> >>> help(list)
>
> it starts showing the help, which can be controlled by page or raw
> using Spacebar or Enter but after this ends, it seems that I can't
> scroll back to see again the first lines.
> In the Command Prompt Properties, layout tab, my Screen buffer size
> is Width:80, Height:3000 and windows size 80x40 (W&H).
>
> Any idea...? thanks in advance!!
> /Ben

Try PgUp when in Python help view.

Try "python -c 'help(list)'" to get the help without Python prompt.

bkamrani

2/25/2008 12:18:00 PM

0

On Feb 25, 12:59 pm, Necmettin Begiter <necmettin.begi...@gmail.com>
wrote:
> 25 February 2008 Monday 11:15:14 tarihinde bkamr...@gmail.com sunlari yazmisti:
>
> > Hi,
> > This is a basic problem, but I want to print help content in a Command
> > Prompt in WinXP and scrolling back to see the first lines. If I start
> > a command prompt and run python, and then for example,
>
> > >>> help(list)
>
> > it starts showing the help, which can be controlled by page or raw
> > using Spacebar or Enter but after this ends, it seems that I can't
> > scroll back to see again the first lines.
> > In the Command Prompt Properties, layout tab, my Screen buffer size
> > is Width:80, Height:3000 and windows size 80x40 (W&H).
>
> > Any idea...? thanks in advance!!
> > /Ben
>
> Try PgUp when in Python help view.
>
> Try "python -c 'help(list)'" to get the help without Python prompt.

Even this doesn't help. But I think I've found a reason for this.
If I change the "start in" directory to C:\WINDOWS\system32\ (this is
where the cmd.exe file is located), then the printed text doesn't get
hide. Don't ask me why...

Thanks anyway,
/Ben

Gabriel Genellina

2/26/2008 7:09:00 AM

0

En Mon, 25 Feb 2008 10:18:19 -0200, <bkamrani@gmail.com> escribió:

> On Feb 25, 12:59 pm, Necmettin Begiter <necmettin.begi...@gmail.com>
> wrote:
>> 25 February 2008 Monday 11:15:14 tarihinde bkamr...@gmail.com Å?unları
>> yazmıÅ?tı:
>>
>> > Hi,
>> > This is a basic problem, but I want to print help content in a Command
>> > Prompt in WinXP and scrolling back to see the first lines. If I start
>> > a command prompt and run python, and then for example,
>>
>> > >>> help(list)
>>
>> > it starts showing the help, which can be controlled by page or raw
>> > using Spacebar or Enter but after this ends, it seems that I can't
>> > scroll back to see again the first lines.
>> > In the Command Prompt Properties, layout tab, my Screen buffer size
>> > is Width:80, Height:3000 and windows size 80x40 (W&H).
>>
>> > Any idea...? thanks in advance!!
>> > /Ben
>>
>> Try PgUp when in Python help view.
>>
>> Try "python -c 'help(list)'" to get the help without Python prompt.
>
> Even this doesn't help. But I think I've found a reason for this.
> If I change the "start in" directory to C:\WINDOWS\system32\ (this is
> where the cmd.exe file is located), then the printed text doesn't get
> hide. Don't ask me why...

I usually open a new console pressing [windows key]+R, "run", no "start
in" directory is involved.
I've seen that after executing a 16-bit program, the console "switches" to
16 bit "compatibility mode", or something like that. The prompt is
displayed using short file names, and the screen buffer is disabled.

--
Gabriel Genellina