This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Text entry to command line program


To be more specific, while tty must be set beforehand, the web page is
silent about other CYGWIN options.

Here's an example:  I set codepage:oem in CYGWIN.  When I run ascii, I see
the correct OEM characters.  Then, in the same bash shell (no rxvt), if I
change CYGWIN to have codepage:ansi, I get the ANSI characters.  Resetting
in bash to codepage:oem gives OEM.  Then if I mark, block, and copy high
order characters, and then paste the high order characters onto the command
line, they look just like they were when ascii displayed them, no matter
what codepage is set to.  if they were pasted behind echo, and then execute
echo, again they look just like what they were when ascii displayed them.
Doing echo x | tr x '\266' gives what character is appropriate for what
codepage is set to at the time.

So changing codepage in CYGWIN after a bash shell is launched can change
cygwin behavior.

-----Original Message-----
From: Larry Hall [mailto:cygwin-lh@cygwin.com] 
Sent: Wednesday, February 04, 2004 11:03 AM
To: Ross Boulet; cygwin@cygwin.com
Subject: RE: Text entry to command line program

At 09:26 AM 2/4/2004, Ross Boulet you wrote:
>> [...]
>> > > Try something like:
>> > > 
>> > > CYGWIN=notty sqlplus
>> > > 
>> > 
>> > Is that saying notty for sqlplus and tty for everything else?
>> [...]
>> 
>> No, that's an interactive command line, it's not a setting of 
>> the CYGWIN
>> variable (i.e. it's not CYGWIN="notty sqlplus"). The above 
>> actually launches
>> sqlplus, setting the CYGWIN variable to "notty" for its process.
>> 
>> SLao
>> 
>Unfortunately, this does not work.  I had previously tried setting CYGWIN
>within a shell to no avail.  I found it must be set from dos before
>launching bash or ksh.


Correct.  Just as stated in the User's Guide:

<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]