Subj : [ANSI] Extended ASCII in Python 3 & Mystic
To : All
From : codefenix
Date : Wed Sep 25 2024 05:25 pm
[0m[1;1H[1mB[0meen experimenting with [1mP[0mython in my spare time ov
[A[50Cer here on my [1mM[0mystic board[1;30m,[B[77D[0mversion
[A[8C[1;36m1[30m.[36m12 [37mA[36m48 [0mon [1mW[0mindows [1;36m10
[A[31C64[30m-[0mbit[1;30m.[B[38D[B[38D[37mC[0monsider the followi
[A[20Cng [1mP[0mython code[1;30m:[B[35D[B[35D[0mimport mystic
[A[13C[1;30m_[0mbbs as bbs[B[24Dprint [1;30m( [0mchr[1;30m([36m248
[A[15C[30m) )[B[18D[0mbbs[1;30m.[0mwriteln [1;30m( [0mchr[1;30m(
[A[18C[36m248[30m) )[B[24D[B[24D[37mI[0mf [1mI [0mrun this scrip
[A[19Ct from mystic as a [1mP[0mython [1;36m2[30m.[36m7[30m.[36m18
[A[52C[0mscript[1;30m, [0mthe output[1;30m, [0mwhich[B[77Dis intend
[A[9Ced[1;30m, [0mis:[B[16D[B[16D�[B[1D�[B[1D[B[1DHowever, whe
[A[12Cn run in Mystic as a Python 3.12.6 script, the output becomes:
[B[74D�[B[1D�[1m�[B[2D[B[2D[B[2DS[0meems the bbs[1;30m.[0mwrit
[A[18Celn function is not pumping the correct extended [1mASCII[B[72D
[A[0mcharacters to the [1mBBS [0mterminal[1;30m. [37mG[0muessing it h
[A[45Cas to do with encoding in [1mP[0mython[B[77D[1;36m3[30m.[0mx
[A[4Cversus [1mP[0mython [1;36m2[30m.[36m7[30m. [37mC[0mharacters
[A[34Cin the range below [1;36m128 [0mdisplay just fine[1;30m.[B[75D
[37mI[0ms there a trick to getting [1mP[0mython [1;36m3[30m.[0mx to d
[A[43Cisplay extended [1mASCII [0min the[B[71Dterminal[1;30m, [0mor
[A[13Cis this just something that doesn[1;30m'[0mt work [1;30m([0myet
[A[58C[1;30m)? [37mI[30m'[0mve come to[B[73Dunderstand that [1mP
[A[17C[0mython [1;36m2[30m.[36m7 [0mis still widely used in [1mM[0m
[A[52Cystic[1;30m, [0mand maybe this is[B[76Djust one of the reasons w
[A[25Chy[1;30m?[B[28D
� codefenix - dawnCHAOTIC
� telnet://conchaos.synchro.net:2300
� ssh://conchaos.synchro.net:2200