Code: Select all
void scrollup() // Scroll up the screen to make room for prompt or text.
{
char *vidmem = (char *) 0xb8000; // Address in memory where Video RAM begins.
unsigned int i=0;
for(i=160; i < 4180; i++)
{
vidmem[i]=vidmem[i+160];
}
moveprompt(promptline);
};
Code: Select all
void moveprompt(int line)
{
prompt[0] = '>'; // Add drive.
prompt[1] = '\0'; // Terminate.
k_printf(prompt,line); // Print the prompt.
movecursor(1,line); // Move the cursor.
promptline=line; // Start at line 1 of the screen.
currentpos=1; // Start 1 character from the left of the screen.
};