SHOW:
|
|
- or go back to the newest paste.
1 | function startMonitor() | |
2 | monitor.setTextScale(1) | |
3 | wm, hm = monitor.getSize() | |
4 | end | |
5 | ||
6 | - | function newLine() |
6 | + | |
7 | - | local _,cY= monitor.getCursorPos() |
7 | + | |
8 | - | monitor.setCursorPos(1,cY+1) |
8 | + | |
9 | local monT = peripheral.getType("left") | |
10 | local cX,cY = monitor.getCursorPos() | |
11 | term.redirect(monitor) | |
12 | ||
13 | while true do | |
14 | ||
15 | -- Open the modem. | |
16 | rednet.open("back") | |
17 | ||
18 | -- Wait for a message | |
19 | id, message = rednet.receive() | |
20 | ||
21 | monitor.write(message) | |
22 | ||
23 | end |