mimaki / mruby-stdio

STDOUT and STDIN for embedded system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mruby-stdio Build Status

STDOUT and STDIN for embedded system

It is necessary to prepare STDOUT._putc and STDIN._getc for target device.

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

  # ... (snip) ...

  conf.gem :git => 'https://github.com/mimaki/mruby-stdio'
  conf.gem :git => 'https://github.com/mimaki/mruby-stdio-grpeach'  # _putc/_getc for target device
end

example

$stdout.print '=> '
$stdout.puts $stdin.gets.chomp

License

under the MIT License:

  • see LICENSE file

About

STDOUT and STDIN for embedded system

License:Other


Languages

Language:Ruby 100.0%