1. EXU puts ?
- Posted by Bernie <xotron at PCOM.NET> Aug 30, 2000
- 482 views
-- In linux it possible to have more than one terminal window open at once. If you use the PUTS() how do you know which terminal window is going to receive the output. Is there a way to get the fn number for a specific terminal window ? Thanks in advance Bernie
2. Re: EXU puts ?
- Posted by cense <cense at mail.ru> Aug 30, 2000
- 477 views
On Wed, 30 Aug 2000, Bernie wrote: > -- > In linux it possible to have more than one terminal window > > open at once. If you use the PUTS() how do you know which terminal > > window is going to receive the output. Is there a way to get the > > fn number for a specific terminal window ? > > Thanks in advance > Bernie you could always open a eu file handle to what ever /dev/tty* you want to use and "puts" everything through that file handle. <untested example> atom my_tty my_tty = open("/dev/tty3", "w" ) puts( my_tty, "Sending to tty3\n" ) close( my_tty ) <end untest> -- cense a member of the ak-software development team http://ak-software.virtualave.net/ contract work for Web Velocity IT inc. http://www.webvelocity.ca/
3. Re: EXU puts ?
- Posted by irv <irv at ELLIJAY.COM> Aug 30, 2000
- 487 views
--Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD Content-Transfer-Encoding: 8bit On Wed, 30 Aug 2000, you wrote: > -- > In linux it possible to have more than one terminal window > > open at once. If you use the PUTS() how do you know which terminal > > window is going to receive the output. Is there a way to get the > > fn number for a specific terminal window ? > > Thanks in advance > Bernie Euphoria is going to use the term from which the program was run. You can open another tty as a file, but this will only work if you are running as root, which is a bad bad idea. (Users don't have write permissions to most (all?) devices. atom tty tty = open("/dev/tty3","w") if tty > 0 then puts(tty,"Hello, Joe!\n") end if If you have more serious communicating to do between processes, see Pete's sockets code, or set up a fifo. Two programs can read and write to the fifo. See attached fifo client/server code. -- Regards, Irv --Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD name="fifo-client.exu"
4. Re: EXU puts ?
- Posted by Bernie <xotron at PCOM.NET> Aug 30, 2000
- 544 views
-- Thanks to IRV and CENSE Bernie
5. Re: EXU puts ?
- Posted by Asif Masood Baloch <cyberego at QTA.PAKNET.COM.PK> Aug 31, 2000
- 466 views
> In linux it possible to have more than one terminal window > > open at once. If you use the PUTS() how do you know which terminal > > window is going to receive the output. Is there a way to get the > > fn number for a specific terminal window ? > > Thanks in advance > Bernie Well Bernie, In linux there are terminals as tty1 to ttyn (where n= digit as 1,2,3,etc) But you must first declare the socket from /dev/ttyn (n=number) Try puts(tty2, "Text") I hope this works because I dont use EU on linux anymore. Thanks -Asif