New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel#puts is not working #17

Closed
BackOrder opened this Issue Jan 8, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@BackOrder
Collaborator

BackOrder commented Jan 8, 2015

Kernel#puts is swallowed by Shoes and not displayed in the Shoes console. Windows newest cshoes.exe will however display puts accordingly to the calling console (cmd) but Shoes will not on MacOS X. This issue on Linux is currently undetermined.

Shoes.app(:title => "Copy and Paste", :width => 450, :height => 250) {
   para "Check Shoes console (alt-/)"
   puts "This should be displayed in Shoes console."
}

TEMPORARY WORKAROUND

module Kernel
   def puts(str)
      info str
   end
end

Shoes.app(:title => "Copy and Paste", :width => 450, :height => 250) {
   para "Check Shoes console (alt-/)"
   puts "This should be displayed in Shoes console."
}
@passenger94

This comment has been minimized.

Show comment
Hide comment
@passenger94

passenger94 Feb 13, 2015

Contributor

doesn't work on ubuntu either but we have Shoes.p (same as debug)

Shoes.app(:title => "Copy and Paste", :width => 450, :height => 250) {
   para "Check Shoes console (alt-/)
   Shoes.p "This should be displayed in Shoes console."
}

(if shoes is launched from command line puts does send string in terminal)

Contributor

passenger94 commented Feb 13, 2015

doesn't work on ubuntu either but we have Shoes.p (same as debug)

Shoes.app(:title => "Copy and Paste", :width => 450, :height => 250) {
   para "Check Shoes console (alt-/)
   Shoes.p "This should be displayed in Shoes console."
}

(if shoes is launched from command line puts does send string in terminal)

@ccoupe

This comment has been minimized.

Show comment
Hide comment
@ccoupe

ccoupe Feb 13, 2015

Contributor

On OSX, the naked puts goes to the System Console (open Console.app if you want to watch the collective stdout/stderr stream). @passenger94: The Linux equivalent to OSX behavior would be to send stdout/stderr from Shoes to syslog, IFF Shoes was started from a Desktop Menu

@BackOrder If you can get Shoes started without using the 'open' command on OSX then stdout/stderr will appear on the initiating terminal.

Contributor

ccoupe commented Feb 13, 2015

On OSX, the naked puts goes to the System Console (open Console.app if you want to watch the collective stdout/stderr stream). @passenger94: The Linux equivalent to OSX behavior would be to send stdout/stderr from Shoes to syslog, IFF Shoes was started from a Desktop Menu

@BackOrder If you can get Shoes started without using the 'open' command on OSX then stdout/stderr will appear on the initiating terminal.

@ccoupe ccoupe referenced this issue Jun 16, 2015

Closed

Branch 'console' #127

@ccoupe ccoupe added this to the 3.2.24 milestone Aug 11, 2015

@ccoupe

This comment has been minimized.

Show comment
Hide comment
@ccoupe

ccoupe Aug 11, 2015

Contributor

Fixed (differently) in 3.2.24

Contributor

ccoupe commented Aug 11, 2015

Fixed (differently) in 3.2.24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment