Jump to content




[Question] How can I make text show on a computer screen and a monitor screen simultaneously?


  • You cannot reply to this topic
7 replies to this topic

#1 Clean0nion

  • New Members
  • 1 posts

Posted 08 March 2013 - 01:46 AM

I was playing Worm on a computer, and other people on the server wanted to watch me play for whatever reason. Instead of having everyone gather round the computer, I connected it to a monitor and ran 'monitor right worm'.

Worm shows up on the monitor with no problem, but to interact with it, you need to access the computer. Worm doesn't show up on the computer, because it's on the monitor.

So how can I make text show on a computer screen and a monitor screen simultaneously?

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 08 March 2013 - 08:43 AM

Split into new topic.

There are a few APIs on the forum that will do this for you. If you want to do it yourself, it's a simple matter of creating a redirect table that interacts with the screen as normal, but also sends all of the drawing calls to the monitor.

#3 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 08 March 2013 - 08:47 AM

View PostJokerRH, on 07 March 2013 - 10:31 AM, said:

View Postboudragon, on 07 March 2013 - 10:18 AM, said:

How would that be solved if possible?

function set(ind)
  if type(term[ind]) ~= "function" then return end

  term[ind] = setmetatable({term = term[ind], monitor = m[ind]}, {
		__call = function(self, ...)
		  self.term(...)
		  self.monitor(...)
		end
  })
end
This additional line will detect if term[ind] is a function. If it is already modified it is a table and will not be set twice

Try that.

Source: http://www.computerc...or/page__st__40

Look at the code there and how to use it. I think that's what you're looking for.

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 08 March 2013 - 08:52 AM

Nope, that's a bad plan. No returns on the getters.

#5 JokerRH

  • Members
  • 147 posts

Posted 09 March 2013 - 10:32 AM

View PostLyqyd, on 08 March 2013 - 08:52 AM, said:

Nope, that's a bad plan. No returns on the getters.

What do you mean with no returns?

#6 Azhf

  • Members
  • 180 posts
  • LocationMurrika

Posted 09 March 2013 - 10:37 AM

There is a program on here somewhere I saw last night but I can't remember what it is called. Sorry XP

#7 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 09 March 2013 - 01:52 PM

There's a program called splitter on the forums by BigSHinyToys which does what you're looking for.

#8 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 09 March 2013 - 03:19 PM

This question was already answered here. Please search anything before posting.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users