efun: get_connection_charset


SYNOPSIS:

        #include <sys/comm.h>

        mixed get_connection_charset (int mode)

DESCRIPTION:

        Return the connection charset of the current interactive in the form
        requested by <mode>:
          <mode> == CHARSET_VECTOR: return as bitvector
          <mode> == CHARSET_STRING: return as string

        Alternatively, the status of the IAC quoting can be queried:
          <mode> == CHARSET_QUOTE_IAC:
            Return 0 if IACs are not quoted, return 1 if they are.

        The bitvector is interpreted as an array of 8-bit-values and might
        contain up to 32 elements. Character n is "combinable"
        if sizeof(bitvector) > n/8 && bitvector[n/8] & (1 << n%8) .

        If there is no current interactive, the function returns 0. 


HISTORY:

        Introduced in LDMud 3.2.10.

SEE ALSO:

	
	set_connection_charset(E), get_combine_charset(E)

UNItopia (mudadm@UNItopia.de)