summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-12-24 03:21:27 -0600
committerepoch <epoch@hacking.allowed.org>2017-12-24 03:21:27 -0600
commite501b8bed2b7583f249c4b315fae97cbdff10f8f (patch)
treead447c82f3152e27f9112b7675c2e324ac0e4505
parenta8b01033723c5c89f6eb0a4b1d74fd17f2cfacc4 (diff)
downloadhackvr-e501b8bed2b7583f249c4b315fae97cbdff10f8f.tar.gz
hackvr-e501b8bed2b7583f249c4b315fae97cbdff10f8f.zip
made hackvr_term take advantage of non-lighted colors and increased character spacing
-rw-r--r--hackvr_term/hackvr_term.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hackvr_term/hackvr_term.c b/hackvr_term/hackvr_term.c
index ae535e5..f315ad6 100644
--- a/hackvr_term/hackvr_term.c
+++ b/hackvr_term/hackvr_term.c
@@ -16,12 +16,13 @@ void hackvr_draw_character(int c,int r,const TMTCHAR *ch) {
printf("# fail to open font\n");
return;
}
+ printf("term_%02d_%02d addshape %d 4 -1 -3 10 5 -3 10 5 7 10 -1 7 10\n",c,r,ch->a.bg+15);
for(i=0;fgets(line,sizeof(line)-1,fp) != 0;i++) {
if(!strncmp(str,line,2)) {
- printf("term_%02d_%02d addshape %d %s",c,r,ch->a.fg==-1?2:ch->a.fg-1,line+strlen("XX addshape X "));
+ printf("term_%02d_%02d addshape %d %s",c,r,ch->a.fg==-1?2:ch->a.fg+15,line+strlen("XX addshape X "));
}
}
- if(i) printf("term_%02d_%02d move %d %d 0\n",c,r,c*5,-r*9);
+ if(i) printf("term_%02d_%02d move %d %d 0\n",c,r,c*6,-r*10);
fclose(fp);
}
@@ -51,7 +52,7 @@ void callback(tmt_msg_t m,TMT *vt, const void *a,void *vt_old) {
}
break;
case TMT_MSG_ANSWER://what does this do?
- fprintf(stderr,"# MSG_ANSWER: %s\n",a);
+ fprintf(stderr,"ANSWER: %s\n",(const char *)a);
break;
case TMT_MSG_MOVED:
printf("cursor move %d %d 0\n", (c->c - cc_old) * 5, - (c->r - cr_old) * 9);//calculate relative movement needed based on previous and current positions.