mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 12:58:06 +11:00
cvm: fix NEWLN behavior
I hadn't noticed yet, but making CVM use the Grid subsystem made me lose scrolling. It's fine because that scrolling was "artificial" in the sense that it was provided by curses, not Collapse OS and I prefer having something that closer emulates a real machine. However, CVM didn't properly clear the new line when entering it. Fixed. Scrolling behavior will come back when it's implemented in the Grid subsystem.
This commit is contained in:
parent
eab8ab6f60
commit
224e9183fb
@ -105,7 +105,7 @@ int main(int argc, char *argv[])
|
||||
// debug panel
|
||||
dw = newwin(1, 30, LINES-1, COLS-30);
|
||||
w = newwin(WLINES, WCOLS, 1, 1);
|
||||
scrollok(w, 1);
|
||||
scrollok(w, 0);
|
||||
while (VM_steps(1000)) {
|
||||
debug_panel();
|
||||
}
|
||||
|
@ -2,7 +2,6 @@
|
||||
: CURSOR! ( new old -- )
|
||||
DROP COLS /MOD 6 PC! ( y ) 5 PC! ( x ) ;
|
||||
: CELL! ( c pos -- ) 0 CURSOR! 0 PC! ;
|
||||
: NEWLN ( ln -- ) DROP 0xa 0 PC! ;
|
||||
|
||||
SYSVARS 0x70 + CONSTANT GRID_MEM
|
||||
402 403 LOADR ( Grid )
|
||||
|
Loading…
Reference in New Issue
Block a user