This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

control chars in script

Old posts that have not been replied to for several years.
Locked
o
otterboyy

Post by otterboyy »

I'm sure its simple but I can't find it so I'm turning to you once again.

I want to pass a control-k# in a string.
Example

if {true} {
puts "(cntl-k)4 Do not reply to this message."
}

thanks in advance!
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

you don't want ctrl+k, you want what mirc output when ctrl+k is pressed, which is ascii symbol 03, which can be used in tcl by using its escaped octal notation (ie 03)
o
otterboyy

Post by otterboyy »

you

are

DA MAN!

thanks!
o
otterboyy

Post by otterboyy »

one more question.
is there a chart of the octal notations?
for example the control codes?
I've been searching the net and can't find one.
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

mirc codes (in octal)

001 = ctcp
002 = bold
003 = colour
017 = reset (aka turn off all previous codes)
026 = inverse
037 = underline
W
Wcc
Master
Posts: 278
Joined: Sun Oct 28, 2001 8:00 pm
Location: USA
Contact:

Post by Wcc »

Locked