delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/25/17:10:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Sam Steingold <sds AT gnu DOT org>
Newsgroups: gmane.os.cygwin
Subject: raw terminal?
Date: 25 Jul 2002 16:47:53 -0400
Organization: disorganization
Lines: 19
Message-ID: <sa07kjj8rgm.fsf@glip.premonitia.com>
Reply-To: sds AT gnu DOT org
NNTP-Posting-Host: 65.114.186.226
Mime-Version: 1.0
X-Trace: main.gmane.org 1027630052 28582 65.114.186.226 (25 Jul 2002 20:47:32 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Thu, 25 Jul 2002 20:47:32 +0000 (UTC)
X-Attribution: Sam
X-Disclaimer: You should not expect anyone to agree with me.
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

when I do

        int x; read(0,&x,1);

the arrow keys move the cursor all over the screen.
on other UNIX flavors, I would get some control junk (like ^[[A)
printed out and made available to read() after I hit RET.
This is what read() gets on cygwin too, but somehow it is not printed
on the screen.  Is there anything I can do to make the terminal behave
more like other UNIX flavors?
(my guess is that this is the "ANSI terminal" - so how do I disable it?)

thanks.

-- 
Sam Steingold (http://www.podval.org/~sds) running RedHat7.3 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
If you think big enough, you'll never have to do it.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019