More anhancement in cursor handling, immitates more the OS style
This commit is contained in:
parent
eb7581ca65
commit
be202295c4
BIN
ALGEBRA.G1A
BIN
ALGEBRA.G1A
Binary file not shown.
Binary file not shown.
Binary file not shown.
18
console.c
18
console.c
|
@ -749,7 +749,12 @@ int Console_Disp()
|
|||
}
|
||||
else
|
||||
{
|
||||
Print(Line[i + Start_Line].str + Line[i + Start_Line].start_col);
|
||||
if(Cursor.x > COL_DISP_MAX-1) {
|
||||
Print(Line[i + Start_Line].str + Line[i + Start_Line].start_col + 1);
|
||||
}
|
||||
else {
|
||||
Print(Line[i + Start_Line].str + Line[i + Start_Line].start_col);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -782,16 +787,17 @@ int Console_Disp()
|
|||
}
|
||||
}
|
||||
|
||||
if (Line[i + Start_Line].disp_len - Line[i + Start_Line].start_col > COL_DISP_MAX)
|
||||
if (Line[i + Start_Line].disp_len - Line[i + Start_Line].start_col > COL_DISP_MAX-1)
|
||||
{
|
||||
locate(COL_DISP_MAX, i + 1);
|
||||
|
||||
if (Line[i + Start_Line].readonly)
|
||||
{
|
||||
Cursor_SetFlashMode(0);
|
||||
PrintRev((unsigned char *)"\xE6\x9B");
|
||||
if(Line[i + Start_Line].disp_len - Line[i + Start_Line].start_col != COL_DISP_MAX) {
|
||||
Cursor_SetFlashMode(0);
|
||||
PrintRev((unsigned char *)"\xE6\x9B");
|
||||
}
|
||||
}
|
||||
else
|
||||
else if(Cursor.x < COL_DISP_MAX-1)
|
||||
{
|
||||
Print((unsigned char *)"\xE6\x9B");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue