You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've only just started playing with this but have been confused for an hour or so after trying to print debug information to the terminal I'm running my script from. When using any of the IO.read* methods, I don't get any output to my terminal when trying to print/puts.
I've setup a simple echo server with a virtual terminal and the script is working but fails to print anything to the terminal. What's going on?
require 'serialport'
NONE = 0
s = SerialPort.new(3,9600,8,1,NONE)
puts "Read timeout is set to '#{s.read_timeout}'"
puts "SerialPort params are: #{s.get_modem_params}"
while true do
c = s.readline("\n")
s.printf(c)
puts c
end
The text was updated successfully, but these errors were encountered:
Hi,
I've only just started playing with this but have been confused for an hour or so after trying to print debug information to the terminal I'm running my script from. When using any of the IO.read* methods, I don't get any output to my terminal when trying to print/puts.
I've setup a simple echo server with a virtual terminal and the script is working but fails to print anything to the terminal. What's going on?
The text was updated successfully, but these errors were encountered: