From 13a6c4fb85a8ea31afe652458a624a45e429f371 Mon Sep 17 00:00:00 2001 From: acn Date: Fri, 13 Mar 2020 17:36:12 +0100 Subject: [PATCH] Blocks: changed keys, cleaned up code --- Blocks/BLOCKS.COM | Bin 9984 -> 9984 bytes Blocks/README.md | 2 +- Blocks/blocks.c | 54 +++++++++++++++++++++++----------------------- Blocks/kslib.h | 8 +++---- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Blocks/BLOCKS.COM b/Blocks/BLOCKS.COM index b94c9b85871bba6ec234fe1e6b514086637189bc..e808490598267366659b7b11106d9df24d3ac408 100644 GIT binary patch delta 2085 zcmai#ZERCj7{~8zd)uztSl?+GY(2NMx4Cu8HgV7(Q!^r&5hR1)uz`R;g!mRUhGpwk z60-mSW8kPn7eQmh09kM;&9Y2|>(YdQC$dD1F)=85bNixA)J9t$Qv#Wtjo9U!bg!Z)Q_D+ouaqlZ*yu)mL1haZ3g*CUa4 zwu`-z+^45awafhm2&9FJ*h!32R%^-9h>2si)s(nmg0AVquFi)BC2>eneo#wg%vR5x zipoP$9M*K1G;srd&B->}m1(u4p~|M+3L>=l0Y4d}7hFWp2hd+#k?5^_Doa((i6d^( zZYI_y?kp1z$IjWYkI`vVnId-#&Cea$>uxbijJUJaIm|96^%c&y?JfkW9<}B7N-Ft@ zOtV8aG7S91!2Q6#415PDh^>Vz(c@p13v(6 z64&X8DR`%0{t)<*fo}i@4LkwdZ{QK&>js_z9y9PQ;7J2VXlu>0d7e{A0?ol?RJObt z2ZPulxwy(&Y9Is%!4gi021|G#qG&5%Fb39`mM3mm=9!khTNb}**=JaSC=rI~O-Q{S zj&p&w)&?^Lyn%w`+iuw&s^Dp)GgB615OlEio?-)tE3d zcp)CKgb$+M5&?*VmIy&8mY5ImxhW=hc*ybD%#60&(~?+}a7{O$^09ur~>h1|QB+XaHuE&TCBfHQNw5u-d z8<*G>?IRHPAzel#X*yJw;G5|w^sRKdPUe@;n{`e6QYw3!yd72|BX}i!%G>5$JJ+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v!hiGjeBEFq(3Dk+XQM{0nZq^-P`6!;>4&x!lB*ioheV4PN zii-9-o#kxN_>spH)=mnSL$G4u8g?U6&JHW;m=eQDu{bGb&zURm`oamJNgUyrd4%mm zg~ezwS;ek~;J{JRD>bg1#%s7X2Q?U}4gJmK5c{K+?^1#Cj65i0YQUYD4+$vGdPu-8 zv(?dvvHgGdActvJP!>O>2Z9M{iBK6_LC*&3qXRf$^QjpE3=$1DrC2PI0{uPsoH#<4 zhi1+B|Hr714i_rJ>Im%($p}0VBA73R9v2T$F-$No4u`$?0BPezG5}F04$zI^*D=FE ze+`#%NqiY{K8?&3boLg08@Vp@N69?P^|a;6+;=UsTq(=dcHgzaawRO+GxuHVELVr+ zdS20I8kI2rkiu2Q96*R%(Gh8eJGS zBi*>~S7L~Er_8ShU!&>e>;-x>x=Fl1|1{^0SQdOXwn!@AB~{4(6`Pc#ZHlg*qj&4l v(rch$+8A$?wu44#XS_k$1scmAh@TRtZ+bJ{`QodKF&cMl- Select blocks", K_SELECT); ScrOutStrRC(BORDER_ROW+4, BORDER_COL+BOARD_COLS*BLOCK_COLS+8, str); + sprintf(str, "%c> Select blocks", K_SELECT); ScrOutStrRC(BORDER_ROW+4, BORDER_COL+BOARD_COLS*BLOCK_COLS+8, str); sprintf(str, "%c> Kill blocks", K_KILL); ScrOutStrRC(BORDER_ROW+5, BORDER_COL+BOARD_COLS*BLOCK_COLS+8, str); sprintf(str, "%c> Quit", K_EXIT); ScrOutStrRC(BORDER_ROW+6, BORDER_COL+BOARD_COLS*BLOCK_COLS+8, str); diff --git a/Blocks/kslib.h b/Blocks/kslib.h index 221ba67..f5b64f3 100644 --- a/Blocks/kslib.h +++ b/Blocks/kslib.h @@ -21,7 +21,7 @@ Revisions: 02 Jul 2012 : Version 1.0 for 24x80 VT52 screen. - 10 Mar 2020 : Version 1.1 for 24x80 VT100 screen. + 10 Mar 2020 : Version 1.1 for 24x80 VT100 screen. Functions: @@ -104,9 +104,9 @@ ScrOutStr: ScrSetRC(row, col) int row, col; { - char str[9]; - sprintf(str, "%c[%d;%dH", 27, row+1, col+1); - ScrOutStr(str); + char str[9]; + sprintf(str, "%c[%d;%dH", 27, row+1, col+1); + ScrOutStr(str); } #asm