Skip to content

Commit a51b74b

Browse files
headiusnobu
authored andcommitted
Restore tty check
1 parent 9b4412c commit a51b74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jruby/io/console/native_console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def self.console(sym = nil, *args)
230230
end
231231
end
232232

233-
if !con #&& $stdin.tty?
233+
if !con && $stdin.tty?
234234
con = File.open('/dev/tty', 'r+')
235235
con.sync = true
236236
@console = con

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy