%# This enters a function and corresponding command to flag ANSI usage
@newfunc $user.at_ansi(self,state)
# set the useANSI flag for the current user
if state.upper() in ["1", "ON", "Y", "YES", "T", "TRUE"]:
   self.useANSI = 1
else:
   self.useANSI = 0