Re: Clearing the Cygwin console

2009-03-21 Thread Thomas Wiedmann

cmd /c cls
doesn't work. It gives the output:
♀


 In a DOS console?


In the usual console of Windows XP (ok - DOS console) called with
cd /d %ProgramFiles%\Cygwin\bin
bash --login -i

Thomas Wiedmann 




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-21 Thread Dave Korn
Thomas Wiedmann wrote:
 cmd /c cls
 doesn't work. It gives the output:
 ♀

  In a DOS console?
 
 In the usual console of Windows XP (ok - DOS console) called with
 cd /d %ProgramFiles%\Cygwin\bin
 bash --login -i


  How thoroughly bizarre.  I haven't seen that on 1.5 or 1.7 on XP or W2k or
1.7 on win7beta.  Do you have any kind of extenders or plugins installed?

cheers,
  DaveK

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-21 Thread Paul McFerrin

What package contains cls.  Can't seem to find it.

Dave Korn wrote:

Thomas Wiedmann wrote:
  

cmd /c cls
doesn't work. It gives the output:
♀


 In a DOS console?
  

In the usual console of Windows XP (ok - DOS console) called with
cd /d %ProgramFiles%\Cygwin\bin
bash --login -i




  How thoroughly bizarre.  I haven't seen that on 1.5 or 1.7 on XP or W2k or
1.7 on win7beta.  Do you have any kind of extenders or plugins installed?

cheers,
  DaveK

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


  


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-21 Thread Christopher Faylor
On Sat, Mar 21, 2009 at 02:46:46PM -0400, Paul McFerrin wrote:
 Dave Korn wrote:
 Thomas Wiedmann wrote:
   
 cmd /c cls
 doesn't work. It gives the output:
 ???

 What package contains cls.  Can't seem to find it.

You're causing a discussion loop.  Please read the whole thread.

cls is obviously a Windows CMD command.  That's why you need to
use cmd to invoke it.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-21 Thread Paul McFerrin
Oh, cls is one of those built-in commands.  Any hints as to where 
clear went?  Sorry 'bout not following the threads but after receiving 
over 400+ post after a hospital stay, I have no choice to delete about 
all of them.  I'm a little s-l-o-w in returning,


-Paul

Christopher Faylor wrote:


You're causing a discussion loop.  Please read the whole thread.

cls is obviously a Windows CMD command.  That's why you need to
use cmd to invoke it.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


  


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-21 Thread Andy Koppe
 Oh, cls is one of those built-in commands.  Any hints as to where
 clear went?

Cygwin Package List
Search Results
Found 4 matches for clear.exe.

clear/clear-1.0-1   removed package; install ncurses instead
ncurses/ncurses-5.5-2   Utilities for terminal handling
ncurses/ncurses-5.5-3   Utilities for terminal handling
ncurses/ncurses-5.7-4   Utilities for terminal handling

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-16 Thread Spiro Trikaliotis
Hello,

* On Sun, Mar 15, 2009 at 03:02:56PM -0400 Charles Wilson wrote:
 Thomas Wiedmann wrote:
  There's also 'clear.exe', although it also does not clear/reset the
  scrollback buffer.
  
  Where, i. e. in which Cygwin package?
  In my %ProgramFiles%\Cygwin\bin there is no clear.exe.
 ^^^
 This is probably a really bad place to install cygwin.  Spaces are bad
 bad bad.

Not every XP has %PROGRAMFILES% with a space in the directory name:

C:\echo %PROGRAMFILES%
C:\Programme

(this is a German XP)

But, in general, you are right. As the user cannot be sure to what a
specific environment variable will expand on each other's machines, one
should be very careful with such advices in the public.

Best regards,
Spiro.

-- 
Spiro R. Trikaliotis  http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-15 Thread Thomas Wiedmann

 alias cls='cmd /c cls'


cmd /c cls
doesn't work. It gives the output:
♀

Thomas Wiedmann 




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-15 Thread Thomas Wiedmann

There's also 'clear.exe', although it also does not clear/reset the
scrollback buffer.


Where, i. e. in which Cygwin package?
In my %ProgramFiles%\Cygwin\bin there is no clear.exe.

Thomas Wiedmann



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-15 Thread Thomas Wiedmann

Where, i. e. in which Cygwin package?
In my %ProgramFiles%\Cygwin\bin there is no clear.exe.


Sorry - I just saw, that the next postings had answered this question - I 
should have read them before.


Thomas Wiedmann 




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-15 Thread Dave Korn
Thomas Wiedmann wrote:
  alias cls='cmd /c cls'
 
 cmd /c cls
 doesn't work. It gives the output:
 ♀

  In a DOS console?

cheers,
  DaveK

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-15 Thread Charles Wilson
Thomas Wiedmann wrote:
 There's also 'clear.exe', although it also does not clear/reset the
 scrollback buffer.
 
 Where, i. e. in which Cygwin package?
 In my %ProgramFiles%\Cygwin\bin there is no clear.exe.
^^^
This is probably a really bad place to install cygwin.  Spaces are bad
bad bad.

--
Chuck

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-14 Thread Andy Koppe
 on Linux/UNIX systems with the command 'clear' the console content usually
 can be flushed, on Windows with 'cls'.
 None of these commands worked with Cygwin. If I enter 'clear', the message
  bash: clear: command not found
 is returned.

 How can a console used with Cygwin be cleared?

Ctrl+L. Works in all terminals.

Andy

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-14 Thread Thomas Wiedmann

Ctrl+L. Works in all terminals.


Great - thanks - worked.

Thomas Wiedmann


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-14 Thread Dave Korn
Andy Koppe wrote:
 on Linux/UNIX systems with the command 'clear' the console content usually
 can be flushed, on Windows with 'cls'.
 None of these commands worked with Cygwin. If I enter 'clear', the message
  bash: clear: command not found
 is returned.

 How can a console used with Cygwin be cleared?
 
 Ctrl+L. Works in all terminals.

  In a DOS console, it doesn't clear and reset the scrollback buffer, only the
visible field.  I use

  alias cls='cmd /c cls'

in those circumstances.

cheers,
  DaveK

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-14 Thread Charles Wilson
Dave Korn wrote:

   In a DOS console, it doesn't clear and reset the scrollback buffer, only the
 visible field.

There's also 'clear.exe', although it also does not clear/reset the
scrollback buffer.

--
Chuck

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-14 Thread Thorsten Kampe
* Thomas Wiedmann (Sat, 14 Mar 2009 10:25:21 +0100)
 on Linux/UNIX systems with the command 'clear' the console content
 usually can be flushed, on Windows with 'cls'. None of these
 commands worked with Cygwin. If I enter 'clear', the message
   bash: clear: command not found
 is returned.
 
 How can a console used with Cygwin be cleared?

With the clear command. clear is part of ncurses and you have to 
install it if it is not yet installed.

Thorsten


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-14 Thread Lee D. Rothstein

Andy Koppe wrote:

on Linux/UNIX systems with the command 'clear' the console content usually
can be flushed, on Windows with 'cls'.
None of these commands worked with Cygwin. If I enter 'clear', the message
 bash: clear: command not found
is returned.

How can a console used with Cygwin be cleared?



Ctrl+L. Works in all terminals.

  


clear.exe is available in the ncurses package.

As Andy said ^-l works.

However, with both clear and ^-l, the scroll buffer is not cleared which 
makes it use with text-based debugging
rather limited. That's one reason the alternate screen option on 'rxvt', 
and 'xterm' is useful.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Clearing the Cygwin console

2009-03-14 Thread Dave Korn
Lee D. Rothstein wrote:
 Andy Koppe wrote:
 on Linux/UNIX systems with the command 'clear' the console content
 usually
 can be flushed, on Windows with 'cls'.
 None of these commands worked with Cygwin. If I enter 'clear', the
 message
  bash: clear: command not found
 is returned.

 How can a console used with Cygwin be cleared?

 Ctrl+L. Works in all terminals.
 
 clear.exe is available in the ncurses package.
 
 As Andy said ^-l works.
 
 However, with both clear and ^-l, the scroll buffer is not cleared which
 makes it use with text-based debugging
 rather limited. That's one reason the alternate screen option on 'rxvt',
 and 'xterm' is useful.

  For gui consoles, use

alias cls='echo -e \033c'

which does clear the scrollback buffer.

cheers,
  DaveK

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/