Changeset View
Changeset View
Standalone View
Standalone View
src/Screen.cpp
Context not available. | |||||
530 | saveCursor(); | 530 | saveCursor(); | ||
---|---|---|---|---|---|
531 | } | 531 | } | ||
532 | 532 | | |||
533 | void Screen::clear() | | |||
534 | { | | |||
535 | clearEntireScreen(); | | |||
536 | home(); | | |||
537 | } | | |||
538 | | ||||
539 | void Screen::backspace() | 533 | void Screen::backspace() | ||
540 | { | 534 | { | ||
541 | _cuX = qMin(_columns - 1, _cuX); // nowrap! | 535 | _cuX = qMin(_columns - 1, _cuX); // nowrap! | ||
Context not available. | |||||
803 | _cuY = qMax(0, qMin(_lines - 1, y + (getMode(MODE_Origin) ? _topMargin : 0))); | 797 | _cuY = qMax(0, qMin(_lines - 1, y + (getMode(MODE_Origin) ? _topMargin : 0))); | ||
804 | } | 798 | } | ||
805 | 799 | | |||
806 | void Screen::home() | | |||
807 | { | | |||
808 | _cuX = 0; | | |||
809 | _cuY = 0; | | |||
810 | } | | |||
811 | | ||||
812 | void Screen::toStartOfLine() | 800 | void Screen::toStartOfLine() | ||
813 | { | 801 | { | ||
814 | _cuX = 0; | 802 | _cuX = 0; | ||
Context not available. |