chr stuff

By cloud369 on Jan 14, 2005

/charecter -s charecter here
to search for the chr num of the charecter you chose
ie /charecter -s *
or
/charecter -l
to loop through all

alias charecter {
if ($1 == -l) {
var %i = 1
while (%i < 256) {
echo -a $!chr(%i) Is $chr(%i)
inc %i
}
}
if ($1 == -s) {
if ($2) && (!$3) {
echo -a $2 Is $asc($2)
}
}
}

Comments

Sign in to comment.
Pibb   -  Jun 13, 2006

Hmm does this work?
And..
Date Added: Jan 14, 2005
Last Updated: Dec 03, 2004

It was updated before it was posted?
Problem?

 Respond  
Yoinx   -  Jan 14, 2005

sorry dont know where the random $ came from \" alias charecter { | if ( $1 == -l) && ( $2 ) { | echo -a $2 is $chr($2) | } | if ($1 == -s) && ( $2 ) { | echo -a $2 Is $asc($2) | } | } \" change the |\'s to returns.\"

 Respond  
Yoinx   -  Jan 14, 2005

thsi is ABSOLUTLEY pointless. as you are just echoing EVERY character instead of the one entered. I think what you wanted was \" alias charecter { | $if ( $1 == -l) && ( $2 ) { | echo -a $2 is $chr($2) | } | if ($1 == -s) && ( $2 ) { | echo -a $2 Is $asc($2) | } | } \" change the |\'s to returns.

 Respond  
n00by   -  Jan 14, 2005

nice, but could you add an option to input a chr number and it will give you the character?

 Respond  
cloud369   -  Jan 14, 2005

lol

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.