Subversion Repositories Shiroi

Rev

Rev 19 | Rev 28 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 20
Line 1... Line 1...
1
/* $Id: text.c 19 2024-08-29 07:16:04Z nishi $ */
1
/* $Id: text.c 20 2024-08-31 06:50:57Z nishi $ */
2
 
2
 
3
#include "text.h"
3
#include "text.h"
4
 
4
 
5
#include "video.h"
5
#include "video.h"
6
#include "math.h"
6
#include "math.h"
Line 35... Line 35...
35
	top--;
35
	top--;
36
	bot--;
36
	bot--;
37
	if(keylist[top * 13 + bot] == '!'){
37
	if(keylist[top * 13 + bot] == '!'){
38
		caps = caps == 0 ? 1 : 0;
38
		caps = caps == 0 ? 1 : 0;
39
		goto rep;
39
		goto rep;
-
 
40
	}else if(keylist[top * 13 + bot] == '?'){
-
 
41
		return 1;
40
	}
42
	}
41
	return caps ? keylist_caps[top * 13 + bot] : keylist[top * 13 + bot];
43
	return caps ? keylist_caps[top * 13 + bot] : keylist[top * 13 + bot];
42
}
44
}
43
 
45
 
44
char getch(void){
46
char getch(void){
Line 51... Line 53...
51
	top--;
53
	top--;
52
	bot--;
54
	bot--;
53
	if(keylist[top * 13 + bot] == '!'){
55
	if(keylist[top * 13 + bot] == '!'){
54
		caps = caps == 0 ? 1 : 0;
56
		caps = caps == 0 ? 1 : 0;
55
		goto rep;
57
		goto rep;
-
 
58
	}else if(keylist[top * 13 + bot] == '?'){
-
 
59
		return 1;
56
	}
60
	}
57
	return caps ? keylist_caps[top * 13 + bot] : keylist[top * 13 + bot];
61
	return caps ? keylist_caps[top * 13 + bot] : keylist[top * 13 + bot];
58
}
62
}
59
 
63
 
60
void clear(void){
64
void clear(void){