consoleのテキスト入力をほぼ完全にした。
改行などなど、自由自在!!!!!!!!!!!!!。
@@ -86,13 +86,14 @@ | ||
86 | 86 | |
87 | 87 | void new_line(struct WINDOWINFO *win, struct POSITION_2D *prompt, struct POSITION_2D *cursor) |
88 | 88 | { |
89 | - if(prompt->y + 16 >= (CONSOLE_YCHARS * 16) - 15){ | |
89 | + if(cursor->y <= (CONSOLE_YCHARS * 16) - 17){ | |
90 | + prompt->y = cursor->y + 16; | |
91 | + put_prompt(win, prompt, cursor); | |
92 | + } else{ | |
90 | 93 | putfonts_win(win, cursor->x, cursor->y, CONSOLE_COLOR_BACKGROUND, CONSOLE_COLOR_BACKGROUND, " "); |
91 | 94 | slide_line(win); |
95 | + prompt->y = (CONSOLE_YCHARS - 1) * 16; | |
92 | 96 | put_prompt(win, prompt, cursor); |
93 | - } else{ | |
94 | - prompt->y = cursor->y + 16; | |
95 | - put_prompt(win, prompt, cursor); | |
96 | 97 | } |
97 | 98 | return; |
98 | 99 | } |
@@ -117,7 +118,7 @@ | ||
117 | 118 | p->x = 8; |
118 | 119 | } |
119 | 120 | } else if(p->x >= CONSOLE_XCHARS * 8){ |
120 | - if(p->y <= (CONSOLE_YCHARS * 16) - 15){ | |
121 | + if(p->y <= (CONSOLE_YCHARS * 16) - 17){ | |
121 | 122 | p->x = 0; |
122 | 123 | p->y += 16; |
123 | 124 | } else{ |