]> git.sur5r.net Git - c128-kasse/blobdiff - src/general.c
use nice drawing characters and two-column layout
[c128-kasse] / src / general.c
index e1fb1736fc7084f04095b146a196438d8477205a..59945444f12ac9219117c5751e9c908b80af9e63 100644 (file)
@@ -26,10 +26,11 @@ char *get_input() {
        while (1) {
                if (i == 31)
                        break;
-               c = getchar();
+               c = cgetc();
                if (c == 13)
                        break;
-               else output[i++] = c;
+               cputc(c);
+               output[i++] = c;
        }
        return output;
 }
@@ -51,7 +52,7 @@ char *format_euro(char *s, int maxlen, int cent){
        if (len >= maxlen)
                return NULL;
        // workaround to produce a leading zero for cents.. %0.2d won't work 
-       sprintf(s, "%2d,%s%dEUR", cent / 100, ((cent%100)<10?"0":""), cent % 100);
+       sprintf(s, "%3d,%s%dEUR", cent / 100, ((cent%100)<10?"0":""), cent % 100);
        return s;
 }