Message from JavaScript discussions

December 2018

— I was referring to making the scrolling functionality work via page up / page down

— 

function logScroll(offset) {
const index = startIndex + offset;
if (index > textLines.length || index < 0) return;
startIndex = index;
textBuffer.setText(textLines.slice(startIndex).join("\n"));
logDraw();
}

— You can make it one-line, like in vim

— It shows that cursor position is at 45% of the buffer

— But, yeah, generally nobody needs scrollbars in terminals..

— I like that

— Was going to add some bar at the top for info like it

— Ha, clever bastard https://overreacted.io/the-elements-of-ui-engineering/

— Experiments will lay here🤤 come and take them if you can

— Damn fine article 💯💯💯

— He made a tweet to collect examples.. lazy-tired style

— Http://2ality.com/2015/06/tail-call-optimization.html#checking-whether-a-function-call-is-in-a-tail-position

Message permanent page