Nobuyoshi N. wrote:
system(“color 70”)
And there’s me thinking that wouldn’t work because it would execute in a
subshell… I guess I should try these things before writing them off

Nobuyoshi N. wrote:
system(“color 70”)
And there’s me thinking that wouldn’t work because it would execute in a
subshell… I guess I should try these things before writing them off

Your questions have already been answered. Your problem
characters on a black background. Is there a ruby command to change
the window or create another window with features that I can control?
Have you actually read the responses to your questions?
For 1: Start → Run → command.com
For 2: Right click on title bar of command window, Properties, Colors
tab.
Both of these questions have been answered. Multiple times.
On Sep 6, 10:05 am, yahdoco [email protected] wrote:
also work.
(1)Is there another way to keep the window in
view until I enter an exit command?(2) I still have the problem that the window consists of white
characters on a black background. Is there a ruby command to change
the window or create another window with features that I can control?Thanks for your help. Yahdoco
Your questions have already been answered. Your problem
is that you don’t know how to use the Windows console
(also known as a DOS box). You need to learn how to use
it before you attempt to learn to program in Ruby.
yahdoco wrote:
day! Yahdoco
Hi William…That’s why I call myself a newbie. I don’t know what I
don’t know. Like many scientists, my method of solving problems is to
discover things by trial and error. Eventually, I will fill in the
gaps in my knowledge. If some nice guys out in ruby-land will help me,
that would be nice too. Thank you for your comments and have a nice
day! Yahdoco
DWARE.html
Have you actually read the responses to your questions?
For 1: Start → Run → command.com
For 2: Right click on title bar of command window, Properties, Colors tab.
Both of these questions have been answered. Multiple times.
Phillip G.
Hi Phillip…I have not ignored the messages sent here. Let me begin
by saying that I am using Windows98. It may have some limitations you
are not aware of. I have carried out the operations you are talikng
about. Here are the results:
My next plan is to try to transfer the data from the black-white
screen to a Notepad file called outzzz.txt. Perhaps someone can
correct my code below to make this happen. Here is the code:
…
#generate some simple output (comment)
puts “Hello World”
f = File.new(“outzzz.txt”, “w”)
f.write(“this is a test”)
require ‘open-uri’
require ‘csv’
def get_adjusted_close stock_symbol
puts “-- #{stock_symbol} Adjusted Close - Historical --”
url = “http://ichart.finance.yahoo.com/table.csv?
s=#{stock_symbol}&d=7&e=1&f=2006&g=d&a=2&b=26&c=1990&ignore=.csv”
puts “Connecting to #{url}\n”
csv = CSV.parse(open(url).read)
csv.each{|row|
puts “#{row[0]} - #{row.last}”
}
puts “---------------------------------”
end
example_stocks = “CSCO GOOG”
print “Enter a series of stock symbols separated by spaces (example:
#{example_stocks}) to retrieve the historical adjusted close.\n”
stock_symbols = gets
stock_symbols ||= example_stocks
stock_symbols.split.each{|symbol|
get_adjusted_close(symbol)
f.write(get_adjusted_close(symbol))
}
Thanks for your help. Yahdoco
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs