comparison pwplib/decterm.c @ 56:5d819ba6891c

More cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 27 May 2010 22:48:37 +0300
parents 77f40a3c0095
children 0f616ade936a
comparison
equal deleted inserted replaced
55:77f40a3c0095 56:5d819ba6891c
128 &1: inverse 128 &1: inverse
129 &8: bright 129 &8: bright
130 &16: charset: P vs B 130 &16: charset: P vs B
131 */ 131 */
132 132
133 int tty_vt_dump(char*s,char*p,int x,int y) 133 int tty_vt_dump(u8 *s,char*p,int x,int y)
134 { 134 {
135 TEMPMALL(u8,tmp,pwplib.videobuf.width*pwplib.videobuf.height*16), 135 TEMPMALL(u8,tmp,pwplib.videobuf.width*pwplib.videobuf.height*16),
136 *d=tmp,skip=0,skipy=0; 136 *d=tmp,skip=0,skipy=0;
137 137
138 skipy=1; 138 skipy=1;
249 ansi-kamikset. */ 249 ansi-kamikset. */
250 250
251 memcpy(d,"\33[0m",4*sizeof(char)); /* nuo framen alkuun */ 251 memcpy(d,"\33[0m",4*sizeof(char)); /* nuo framen alkuun */
252 pwp_tty.att=0;d+=4; 252 pwp_tty.att=0;d+=4;
253 253
254 tty_write(tmp,d-tmp); 254 tty_write((char *)tmp, d - tmp);
255 TEMPFREE(tmp); 255 TEMPFREE(tmp);
256 return d-tmp; 256 return d-tmp;
257 } 257 }
258 258
259 /* combine this with corresponding ansicon stuff */ 259 /* combine this with corresponding ansicon stuff */