Re: symbolic links, aliases, cls clear

2006-05-03 Thread Floyd L. Davidson
[EMAIL PROTECTED] wrote: >it would be nice if python provided a termcap or terminfo library, >wouldn't it? Try "import curses". -- Floyd L. Davidson Ukpeagvik (Barrow, Alaska) [EMAIL PROTECTED] -- http://mail.python.org/m

Re: symbolic links, aliases, cls clear

2006-05-03 Thread af . dingo
it would be nice if python provided a termcap or terminfo library, wouldn't it? -- http://mail.python.org/mailman/listinfo/python-list

Re: symbolic links, aliases, cls clear

2006-04-15 Thread Chris F.A. Johnson
On 2006-04-13, Barry Margolin wrote: > In article <[EMAIL PROTECTED]>, > "Chris F.A. Johnson" <[EMAIL PROTECTED]> wrote: > >> In fact, my scripts are portable to other terminal types by use >> of files for each terminal, generated with tput. Using a >> different terminal is as easy

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Barry Margolin
In article <[EMAIL PROTECTED]>, "Chris F.A. Johnson" <[EMAIL PROTECTED]> wrote: > In fact, my scripts are portable to other terminal types by use > of files for each terminal, generated with tput. Using a > different terminal is as easy as ". /usr/share/term-sh/$TERM" or > som

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, Christos Georgiou wrote: > On Wed, 12 Apr 2006 15:59:05 -0400, rumours say that "Chris F.A. Johnson" ><[EMAIL PROTECTED]> might have written: > I still have a system which does not have tput. >>> >>> And that justifies everything else. Of course. >> >> If I want to write po

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Christos Georgiou
On Wed, 12 Apr 2006 15:59:05 -0400, rumours say that "Chris F.A. Johnson" <[EMAIL PROTECTED]> might have written: >>>I still have a system which does not have tput. >> >> And that justifies everything else. Of course. > > If I want to write portable scripts, then yes, it does. Well, either

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
"Chris F.A. Johnson" <[EMAIL PROTECTED]> wrote: >On 2006-04-12, Floyd L. Davidson wrote: >> Keith Thompson <[EMAIL PROTECTED]> wrote: tput clear >>> >>>(Or "clear".) >> >> But /clear/ merely uses "tput clear". > > Not on systems without tput. Shoot that thing, and put it (and yourself) o

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, jpd wrote: > Begin <[EMAIL PROTECTED]> > On 2006-04-12, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote: >>These days, the ISO-6429 standard (almost the same as the older >>ANSI x3.64) is so close to universal that I don't bother writing >>for anything else any more. > > Oh

Re: symbolic links, aliases, cls clear

2006-04-12 Thread jpd
Begin <[EMAIL PROTECTED]> On 2006-04-12, Chris F.A. Johnson <[EMAIL PROTECTED]> wrote: >These days, the ISO-6429 standard (almost the same as the older >ANSI x3.64) is so close to universal that I don't bother writing >for anything else any more. Oh, wonderful. ``All the world's a vax

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, Floyd L. Davidson wrote: > Keith Thompson <[EMAIL PROTECTED]> wrote: >>>tput clear >> >>(Or "clear".) > > But /clear/ merely uses "tput clear". Not on systems without tput. -- Chris F.A. Johnson, author | Shell Scripting Recipes: |

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
Keith Thompson <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] (Floyd L. Davidson) writes: >> [EMAIL PROTECTED] wrote: >>>If I may recommend an alternative, >>> >>>print "\033[H\033[J" >>> >>>the ansi sequence to clear the screen. >> >> Or so you would hope (however, that is *not* what you have liste

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Chris F.A. Johnson
On 2006-04-12, Floyd L. Davidson wrote: > [EMAIL PROTECTED] wrote: >>If I may recommend an alternative, >> >>print "\033[H\033[J" >> >>the ansi sequence to clear the screen. > > Or so you would hope (however, that is *not* what you have listed!). > > Unfortunately, it is poor practice to hard code

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Keith Thompson
[EMAIL PROTECTED] (Floyd L. Davidson) writes: > [EMAIL PROTECTED] wrote: >>If I may recommend an alternative, >> >>print "\033[H\033[J" >> >>the ansi sequence to clear the screen. > > Or so you would hope (however, that is *not* what you have listed!). > > Unfortunately, it is poor practice to hard

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Michael Paoli
Floyd L. Davidson wrote: > [EMAIL PROTECTED] wrote: > >If I may recommend an alternative, > >print "\033[H\033[J" > Unfortunately, it is poor practice to hard code such sequences. > Instead the proper sequence should be obtained from the > appropriate database (TERMINFO or TERMCAP), and the easy wa

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
"mp" <[EMAIL PROTECTED]> wrote: >i have a python program which attempts to call 'cls' but fails: > >sh: line 1: cls: command not found Hm... (I don't program in Python, so precisely what is happening isn't something I'm sure about). But, note how that line starts with "sh:"! That indicates

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Floyd L. Davidson
[EMAIL PROTECTED] wrote: >If I may recommend an alternative, > >print "\033[H\033[J" > >the ansi sequence to clear the screen. Or so you would hope (however, that is *not* what you have listed!). Unfortunately, it is poor practice to hard code such sequences. Instead the proper sequence should be

Re: symbolic links, aliases, cls clear

2006-04-12 Thread af . dingo
If I may recommend an alternative, print "\033[H\033[J" the ansi sequence to clear the screen. -- http://mail.python.org/mailman/listinfo/python-list

Re: symbolic links, aliases, cls clear

2006-04-04 Thread Pankaj
its true for the processes, gone to the system mode and from there the process is not considering the shell variable any more. In case of deamons also it is the same case. For Phython programs, I am not sure , may they are also nohops, so might be not accessing the shell variables. But i think you

Re: symbolic links, aliases, cls clear

2006-03-30 Thread Michael Paoli
mp wrote: > i have a python program which attempts to call 'cls' but fails: > sh: line 1: cls: command not found > i'm using os x. [Note Followup-to: severely trimmed] I'd guestimate (those more familiar with python can probably fill in more relevant python specific details) that the python progr

Re: symbolic links, aliases, cls clear

2006-03-29 Thread SM Ryan
"mp" <[EMAIL PROTECTED]> wrote: # i have a python program which attempts to call 'cls' but fails: # # sh: line 1: cls: command not found # # i tried creating an alias from cls to clear in .profile, .cshrc, and # /etc/profile, but none of these options seem to work. # # my conclusion is that a py

Re: symbolic links, aliases, cls clear

2006-03-29 Thread Chris F.A. Johnson
On 2006-03-29, mp wrote: > i have a python program which attempts to call 'cls' but fails: > > sh: line 1: cls: command not found > > i tried creating an alias from cls to clear in .profile, .cshrc, and > /etc/profile, but none of these options seem to work. Why not call 'clear', since 'cls' do

Re: symbolic links, aliases, cls clear

2006-03-29 Thread Keith Thompson
"mp" <[EMAIL PROTECTED]> writes: > i have a python program which attempts to call 'cls' but fails: > > sh: line 1: cls: command not found > > i tried creating an alias from cls to clear in .profile, .cshrc, and > /etc/profile, but none of these options seem to work. > > my conclusion is that a pyth

symbolic links, aliases, cls clear

2006-03-29 Thread mp
i have a python program which attempts to call 'cls' but fails: sh: line 1: cls: command not found i tried creating an alias from cls to clear in .profile, .cshrc, and /etc/profile, but none of these options seem to work. my conclusion is that a python program that is executing does not use the