Fix for /dev/tty on Win32

Started by Bruce Momjianover 20 years ago2 messagespatches
Jump to latest
#1Bruce Momjian
bruce@momjian.us

I found a better solution to the /dev/tty on Win32. I used 'con' which
works fine on Win32 except using the Msys 1.0.10 console, but it is
probably the best solution. Can someone test if newer Msys consoles
work with this?

Added DEVTTY macro for simplicity.

Applied to 8.0.X, 8.1.X, and HEAD.

--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com

+ If your life is a hard drive, Christ can be your backup. +

Attachments:

/rtmp/difftext/plainDownload+23-20
#2Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#1)
Re: Fix for /dev/tty on Win32

Bruce Momjian wrote:

I found a better solution to the /dev/tty on Win32. I used 'con' which
works fine on Win32 except using the Msys 1.0.10 console, but it is
probably the best solution. Can someone test if newer Msys consoles
work with this?

Added DEVTTY macro for simplicity.

Applied to 8.0.X, 8.1.X, and HEAD.

I am attaching a new applied patch that reverts "msys" so it doesn't use
'con'. This means we now actually prompt from the terminal on Win32
(except for msys consoles).

--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com

+ If your life is a hard drive, Christ can be your backup. +

Attachments:

/bjm/difftext/plainDownload+9-9