hevohevo

CC: mon1

Apr 18th, 2016
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. -- mon1
  2. -- 真上に設置したモニターに文字を表示する
  3. local mon = peripheral.wrap("top") -- 変数monに各種操作関数を詰め込む
  4.  
  5. mon.clear()  -- モニターのクリア
  6.  
  7. mon.setCursorPos(1,1)  -- カーソル位置を座標(1,1)にセット
  8.  
  9. mon.write("Hello!")  -- 座標(1,1)から文字を表示
Add Comment
Please, Sign In to add comment