• R/O
  • SSH
  • HTTPS

chnosproject: Commit


Commit MetaInfo

Revisión164 (tree)
Tiempo2010-10-10 17:44:46
Autorhikarupsp

Log Message

consoleのテキスト入力をほぼ完全にした。
改行などなど、自由自在!!!!!!!!!!!!!。

Cambiar Resumen

Diferencia incremental

--- beta/tolset_chn_000/chnos_007/chnos/console.c (revision 163)
+++ beta/tolset_chn_000/chnos_007/chnos/console.c (revision 164)
@@ -86,13 +86,14 @@
8686
8787 void new_line(struct WINDOWINFO *win, struct POSITION_2D *prompt, struct POSITION_2D *cursor)
8888 {
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{
9093 putfonts_win(win, cursor->x, cursor->y, CONSOLE_COLOR_BACKGROUND, CONSOLE_COLOR_BACKGROUND, " ");
9194 slide_line(win);
95+ prompt->y = (CONSOLE_YCHARS - 1) * 16;
9296 put_prompt(win, prompt, cursor);
93- } else{
94- prompt->y = cursor->y + 16;
95- put_prompt(win, prompt, cursor);
9697 }
9798 return;
9899 }
@@ -117,7 +118,7 @@
117118 p->x = 8;
118119 }
119120 } else if(p->x >= CONSOLE_XCHARS * 8){
120- if(p->y <= (CONSOLE_YCHARS * 16) - 15){
121+ if(p->y <= (CONSOLE_YCHARS * 16) - 17){
121122 p->x = 0;
122123 p->y += 16;
123124 } else{
Show on old repository browser