Browse code

adding decimal dot to minidigit

tth authored on 05/02/2019 14:36:01
Showing 2 changed files
... ...
@@ -47,7 +47,8 @@ static char L9[]    = "XXXX_XXXX__XXXX";
47 47
 
48 48
 static char Lsp[]   = "_______________";		/* space */
49 49
 static char Lmo[]   = "______XXX______";		/* moins */
50
-static char Lco[]   = "____X_____X____";
50
+static char Lco[]   = "____X_____X____";		/* colomn */
51
+static char Ldp[]   = "_____________X_";		/* decimal dot */
51 52
 
52 53
 char		*cptr;
53 54
 int	l, c;
... ...
@@ -68,6 +69,7 @@ switch (digit) {
68 68
 	case ' ':	cptr = Lsp;		break;
69 69
 	case '-':	cptr = Lmo;		break;
70 70
 	case ':':	cptr = Lco;		break;
71
+	case '.':	cptr = Ldp;		break;
71 72
 
72 73
 	default:	cptr = LX;		break;
73 74
 
... ...
@@ -38,7 +38,7 @@ for (loop=0; loop<nbl; loop++) {
38 38
 
39 39
 	temps = time(NULL);
40 40
 	p_tms = localtime(&temps);
41
-	(void)strftime(chaine, 100, "%H:%M", p_tms);
41
+	(void)strftime(chaine, 100, "%H.%M", p_tms);
42 42
 	for (foo=0; foo<strlen(chaine); foo++) {
43 43
 		minidigit_0(stdscr, 15, 8+foo*8, chaine[foo], 0);
44 44
 		}