Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Local Echo

Status
Not open for further replies.

ToddWW

Programmer
Mar 25, 2001
1,073
US
Is there a way to prevent strings transmitted from being displayed on the terminal string.
Code:
transmit "Hello"
How can I use that line without "Hello" being displayed on the screen.

Help mentions that if Local Echo is on, the string will be displayed. But doesn't mention how to toggle it on/off.

ToddWW
 
I'm not aware of a "clean" way to do this, as the local echo that the help file mentions is Procomm's duplex setting, but you also have to figure in the echo from the system you are connected to. In other words, toggling this setting in Procomm won't have any affect if the other system echoes what you type. If this is the case, you can use set duplex half before sending the string then switch back to full duplex using the set duplex full command.

If the remote system does echo the text back, then you could use an rget command immediately following the transmit statement that looked something like this:

rget s0 256 1

This tells the rget command to wait one second for 256 bytes to be received into the global s0 variable. What this command will do is capture the echo from your transmit command into a string that you don't bother accessing, preventing it from appearing on-screen. You can use the set aspect rgetchar command to key off the final character (usually ^M or ^J) of the string you are sending as well.


aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top