Skip to content

Commit

Permalink
关闭命令行窗口(2)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed May 16, 2016
1 parent 884ddf2 commit 0c2b6c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 26_day/bootpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,13 @@ void HariMain(void)
task->tss.eax = (int) &(task->tss.esp0);
task->tss.eip = (int) asm_end_app;
io_sti();
} else { /*命令行窗口*/
task = sht->task;
io_cli();
fifo32_put(&task->fifo, 4);
io_sti();
}
}
}
break;
}
}
Expand Down
3 changes: 3 additions & 0 deletions 26_day/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ void console_task(struct SHEET *sheet, int memtotal)
boxfill8(sheet->buf, sheet->bxsize, COL8_000000, cons.cur_x, cons.cur_y, cons.cur_x + 7, cons.cur_y + 15);
cons.cur_c = -1;
}
if (i == 4) { /*点击命令行窗口的“×”按钮*/
cmd_exit(&cons, fat);
}
if (256 <= i && i <= 511) { /*键盘数据(通过任务A)*/
if (i == 8 + 256) {
/*退格键*/
Expand Down

0 comments on commit 0c2b6c5

Please sign in to comment.