mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-15 17:04:04 +09:00
edit.js: newline indicator
This commit is contained in:
@@ -170,7 +170,7 @@ function drawTextLineAbsolute(rowNumber, paintOffsetX) {
|
|||||||
con.color_pair(COL_TEXT, (rowNumber == cursorRow) ? COL_CARET_ROW : COL_BACK);
|
con.color_pair(COL_TEXT, (rowNumber == cursorRow) ? COL_CARET_ROW : COL_BACK);
|
||||||
|
|
||||||
for (let x = 0; x < paintWidth; x++) {
|
for (let x = 0; x < paintWidth; x++) {
|
||||||
let text = textbuffer[rowNumber];
|
let text = textbuffer[rowNumber] + String.fromCharCode(254);
|
||||||
let charCode =
|
let charCode =
|
||||||
// nonexisting text row
|
// nonexisting text row
|
||||||
(undefined === textbuffer[rowNumber]) ? 0 :
|
(undefined === textbuffer[rowNumber]) ? 0 :
|
||||||
@@ -382,7 +382,8 @@ function cursorMoveRelative(odx, ody) {
|
|||||||
cursorCol = nextCol;
|
cursorCol = nextCol;
|
||||||
|
|
||||||
|
|
||||||
serial.println(`d ${dx} ${dy}; n ${nextCol} ${nextRow}; scr ${scrollHor} ${scroll}; R ${cursorRow} C ${cursorCol} | wDim:${paintHeight}R ${paintWidth}C peek:${scrollPeek}`);
|
//serial.println(`d ${dx} ${dy}; n ${nextCol} ${nextRow}; scr ${scrollHor} ${scroll}; R ${cursorRow} C ${cursorCol} | wDim:${paintHeight}R ${paintWidth}C peek:${scrollPeek}`);
|
||||||
|
|
||||||
|
|
||||||
// update screendraw
|
// update screendraw
|
||||||
if (oldScroll != scroll) {
|
if (oldScroll != scroll) {
|
||||||
|
|||||||
Reference in New Issue
Block a user