You are reading a single comment by @fanoush and its replies.
Click here to read the full conversation.
-
getters are THE PERFECT solution
Well, in this specific case I would call it very nice hack, not perfect solution ;-)
However something like console.pause()/resume() would help in this case so that it doesn't need to be reassigned twice with that ->xxx message. Also maybe console.current referencing which Serial device is current console would help in case of temporary reassignment (or is there a way to get it?).
@Gordon, getters are THE PERFECT solution... NICE ...how could I not think about... (never used getters, not even in my browser world, where most of my JS exposure happened...)