X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <47987DD7.69849291@dessent.net> Date: Thu, 24 Jan 2008 04:00:23 -0800 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: what's the difference between /dev/tty1 and /dev/console References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Yue Chen wrote: > I have two hosts installed with cygwin. When I click the cygwin icon > on host1, the prompt CLI window's tty is /dev/console. However, when I > click the icon on host2, the CLI window's tty turns to be /dev/tty1. > In the first window, all windows applications run very well. But in > the /dev/tty1 window, some windows application can not run > successfully. Does any one know why? /dev/console means that the session is running in a real Windows console. /dev/tty1 means that the session is running attached to a pty (pseudoterminal) which is emuated by Cygwin. Since ptys are an emulated concept that don't exist in Windows, non-Cygwin programs get confused by them because they think their output is a pipe and not an interactive session. If you use any terminal but the stock Windows console (i.e. rxvt, xterm, ssh connection) or you have "tty" in your CYGWIN environment variable you always get a pty. The only time you get a console is when you don't have "tty" set and you invoke bash from a real Windows console. Brian -- 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/