public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7)
@ 2012-05-04 21:43 Chris Brouwer
  2012-05-05  8:10 ` Csaba Raduly
  2012-05-06 12:54 ` David Sastre Medina
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Brouwer @ 2012-05-04 21:43 UTC (permalink / raw)
  To: cygwin

Hello,

I have just installed Cygwin 1.17.14-2 using the setup.exe.

I use Console (portable; from Portableapp.Com) as my entry to bash. I 
created an extra tab definition for Console, which starts cygwin.bat. 
Works as expected, so far.
The odd thing is, if I want to use, eg cd ~, the tilde is not shown, but 
the backtick "`" is.

I have tried this when calling cygwin.bat from Explorer, effectively 
starting cygwin from cmd.exe, and then the "~" works as expected.

Does anyone else experience this ?

Does anyone have a solution for this ?

Thanks in advance.

Chris.


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7)
  2012-05-04 21:43 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7) Chris Brouwer
@ 2012-05-05  8:10 ` Csaba Raduly
  2012-05-06 12:54 ` David Sastre Medina
  1 sibling, 0 replies; 6+ messages in thread
From: Csaba Raduly @ 2012-05-05  8:10 UTC (permalink / raw)
  To: cygwin

Hi Chris,

On Fri, May 4, 2012 at 11:43 PM, Chris Brouwer  wrote:
> Hello,
>
> I have just installed Cygwin 1.17.14-2 using the setup.exe.
>
> I use Console (portable; from Portableapp.Com) as my entry to bash. I
> created an extra tab definition for Console, which starts cygwin.bat. Works
> as expected, so far.
> The odd thing is, if I want to use, eg cd ~, the tilde is not shown, but the
> backtick "`" is.

You mean the backtick appears _instead_of_ the tilde? That would be a
problem with the keyboard layout. Do you have a British layout?
(http://www.goodtyping.com/teclatUK.htm)

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7)
  2012-05-04 21:43 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7) Chris Brouwer
  2012-05-05  8:10 ` Csaba Raduly
@ 2012-05-06 12:54 ` David Sastre Medina
  2012-05-06 18:16   ` Andrew DeFaria
  1 sibling, 1 reply; 6+ messages in thread
From: David Sastre Medina @ 2012-05-06 12:54 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

On Fri, May 04, 2012 at 11:43:23PM +0200, Chris Brouwer wrote:
> I have just installed Cygwin 1.17.14-2 using the setup.exe.
> 
> I use Console (portable; from Portableapp.Com) as my entry to bash.
> I have tried this when calling cygwin.bat from Explorer, effectively
> starting cygwin from cmd.exe, and then the "~" works as expected.
> 
> Does anyone have a solution for this ?

Yes. Just use mintty. It's the default and it works.

-- 
Primary key fingerprint: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7)
  2012-05-06 12:54 ` David Sastre Medina
@ 2012-05-06 18:16   ` Andrew DeFaria
  2012-05-06 22:50     ` JonY
  2012-05-06 23:04     ` Daniel Colascione
  0 siblings, 2 replies; 6+ messages in thread
From: Andrew DeFaria @ 2012-05-06 18:16 UTC (permalink / raw)
  To: cygwin

On 05/06/2012 05:54 AM, David Sastre Medina wrote:
> On Fri, May 04, 2012 at 11:43:23PM +0200, Chris Brouwer wrote:
>> I have just installed Cygwin 1.17.14-2 using the setup.exe.
>>
>> I use Console (portable; from Portableapp.Com) as my entry to bash.
>> I have tried this when calling cygwin.bat from Explorer, effectively
>> starting cygwin from cmd.exe, and then the "~" works as expected.
>>
>> Does anyone have a solution for this ?
> Yes. Just use mintty. It's the default and it works.
I use mintty and Console. One good thing about Console it understands 
pty's or does something in the face of pty's that cause it to work in 
certain circumstances that mintty fails in. My example is cleartool. In 
mintty (or when mintty has ssh'ed to a remote system - sorry not on my 
work XP machine to test...) when I type cleartool I get no prompt. This 
is a long standing issue with cleartool on Windows using standard 
"console output" and that not working with ptys. Console, however, 
works. IIRC I think I saw it running a child cmd process. So maybe it 
runs things in there and grabs output to be displayed or read from.

I wish mintty could be made to do that...
-- 
Andrew DeFaria <http://defaria.com>
"Very funny, Scotty. Now beam down my clothes."


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7)
  2012-05-06 18:16   ` Andrew DeFaria
@ 2012-05-06 22:50     ` JonY
  2012-05-06 23:04     ` Daniel Colascione
  1 sibling, 0 replies; 6+ messages in thread
From: JonY @ 2012-05-06 22:50 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1588 bytes --]

On 5/7/2012 02:16, Andrew DeFaria wrote:
> On 05/06/2012 05:54 AM, David Sastre Medina wrote:
>> On Fri, May 04, 2012 at 11:43:23PM +0200, Chris Brouwer wrote:
>>> I have just installed Cygwin 1.17.14-2 using the setup.exe.
>>>
>>> I use Console (portable; from Portableapp.Com) as my entry to bash.
>>> I have tried this when calling cygwin.bat from Explorer, effectively
>>> starting cygwin from cmd.exe, and then the "~" works as expected.
>>>
>>> Does anyone have a solution for this ?
>> Yes. Just use mintty. It's the default and it works.
> I use mintty and Console. One good thing about Console it understands
> pty's or does something in the face of pty's that cause it to work in
> certain circumstances that mintty fails in. My example is cleartool. In
> mintty (or when mintty has ssh'ed to a remote system - sorry not on my
> work XP machine to test...) when I type cleartool I get no prompt. This
> is a long standing issue with cleartool on Windows using standard
> "console output" and that not working with ptys. Console, however,
> works. IIRC I think I saw it running a child cmd process. So maybe it
> runs things in there and grabs output to be displayed or read from.
> 
> I wish mintty could be made to do that...

Console, like the normal Windows Command Prompt does not understand
PTYs, rather, it's the side effect of the PTY emulation you're seeing.

Sounds like your app is doing some line buffering because it thinks the
stdio is done via pipes when working with PTYs. There's nothing to be
done on the Cygwin side to fix this.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 196 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7)
  2012-05-06 18:16   ` Andrew DeFaria
  2012-05-06 22:50     ` JonY
@ 2012-05-06 23:04     ` Daniel Colascione
  1 sibling, 0 replies; 6+ messages in thread
From: Daniel Colascione @ 2012-05-06 23:04 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

On 5/6/12 11:16 AM, Andrew DeFaria wrote:
>> Yes. Just use mintty. It's the default and it works.
> I use mintty and Console. One good thing about Console it understands
> pty's or does something in the face of pty's that cause it to work in
> certain circumstances that mintty fails in. My example is cleartool.
> In mintty (or when mintty has ssh'ed to a remote system - sorry not on
> my work XP machine to test...) when I type cleartool I get no prompt.

Have you tried the conin program? You can get it from the mintty
repository here: https://code.google.com/p/mintty/source/browse/utils/

It lets you run a child process with stdin coming from a real Windows
console, through which conin proxies your input. IME, it makes most
programs believe they're being run interactively.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 235 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-06 23:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-04 21:43 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7) Chris Brouwer
2012-05-05  8:10 ` Csaba Raduly
2012-05-06 12:54 ` David Sastre Medina
2012-05-06 18:16   ` Andrew DeFaria
2012-05-06 22:50     ` JonY
2012-05-06 23:04     ` Daniel Colascione

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).