135 points · by OisinMoran · 4y ago · 49 comments
Here the cursor takes no heed of what you're typing and just advances at a steady pace, with the effect that typing something reasonable-looking requires you to type at a very steady rhythm. There's also the bonus that the space character is no longer needed—you can (and kind of have to) just wait—so the keyboard minimalists among us can shave even more space off their devices. Only desktop for now.
It's an interesting contrast to the last one I made—which requires you to do all the heavy lifting in moving the cursor position yourself—https://oisinmoran.com/typewriter
1. https://oisinmoran.com/typewaiter (the HN submission points to it), here the cursor moves on its own, and
2. https://oisinmoran.com/typewriter (linked in the HN submission's description) and here the cursor doesn't move.
I originally skimmed the post's description, clicked the final link and I didn't understand why I'm seeing something different. I guess there is a lesson about phishing here somewhere.
It really makes it quite evident how variable the timings for certain letters and words are (like "the" is almost a single character).
Typing on a older Teletype machine is like that. The keyboard is mechanical - really mechanical, not just clicky. When you press a key, it locks down, and all other keys are locked until the previous keypress has been processed, which takes about 200ms. So you learn to type at a constant speed.
Would be cool if you could save the written text later.
EDIT: Have added a visible cursor now (with the ability to toggle it on or off to preserve the initial feel)! You should see it if you refresh.
Wasn't too complicated in the end, and did some fun calibration target practice with "x"s to make sure it was positioned nicely.
Thanks for the feedback josephcsible and Apreche!
edit: it started working for me -- the cursor would not move before. Not sure why that deserves down votes.
1. https://oisinmoran.com/typewaiter (the HN submission points to it) and here the cursor moves on its own, and
2. https://oisinmoran.com/typewriter (linked in the HN submission's description) and here the cursor doesn't move.
I'll look into it! Thanks
and then you can catch those events just like any other.
Perhaps the cursor could pause during a composition event?
For testing, you can easily generate composition events from a Mac keyboard, e.g.
1. Press option-e and observe an acute accent with an underline: ´ 2. Press a vowel and observe the lone accent transform into the accented character: é
it i s !