Browse Source

adding decimal dot to minidigit

tth 1 year ago
parent
commit
ca420bc745
2 changed files with 4 additions and 2 deletions
  1. 3
    1
      viz/curses/minidigits.c
  2. 1
    1
      viz/curses/t.c

+ 3
- 1
viz/curses/minidigits.c View File

@@ -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 69
 	case ' ':	cptr = Lsp;		break;
69 70
 	case '-':	cptr = Lmo;		break;
70 71
 	case ':':	cptr = Lco;		break;
72
+	case '.':	cptr = Ldp;		break;
71 73
 
72 74
 	default:	cptr = LX;		break;
73 75
 

+ 1
- 1
viz/curses/t.c View File

@@ -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
 		}

Loading…
Cancel
Save