vt: turn off nl -> nl+cr translation default in raw mode, don't scroll more than screen height
This commit is contained in:
parent
c4fd860a56
commit
c6359c3090
|
@ -101,7 +101,7 @@ ulong rgbahicolors[8] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* terminal control */
|
/* terminal control */
|
||||||
struct ttystate ttystate[2] = { {0, 1}, {0, 1} };
|
struct ttystate ttystate[2] = { {0, 1}, {0, 0} };
|
||||||
|
|
||||||
Point margin;
|
Point margin;
|
||||||
Point ftsize;
|
Point ftsize;
|
||||||
|
@ -347,10 +347,9 @@ drawscreen(void)
|
||||||
|
|
||||||
hidecursor();
|
hidecursor();
|
||||||
|
|
||||||
if(scrolloff != 0){
|
if(scrolloff && scrolloff <= ymax)
|
||||||
n = scrolloff % (ymax+1);
|
draw(screen, Rpt(pt(0,0), pt(xmax+2, ymax+1-scrolloff)),
|
||||||
draw(screen, Rpt(pt(0,0), pt(xmax+2, ymax+1-n)), screen, nil, pt(0, n));
|
screen, nil, pt(0, scrolloff));
|
||||||
}
|
|
||||||
|
|
||||||
for(y = 0; y <= ymax; y++){
|
for(y = 0; y <= ymax; y++){
|
||||||
if(!screenchange(y))
|
if(!screenchange(y))
|
||||||
|
|
Loading…
Reference in a new issue