[squeak-dev] The Trunk: Collections-mt.945.mcz
marcel.taeumel at hpi.de
Fri Jun 18 06:26:40 UTC 2021
One more thing: Also changes the printString of ASCII-13 to #return because it seems more readable than #cr.
Note that I pushed readability more into the direction of recognizing physical keys, not standard ASCII labels. I hope that's fine... In that sense, the printString for #lf might be also changed to #linefeed, which is already there.
But is there a keyboard with a line-feed key? I know that the "Enter" key on the num pad does not arrive as ASCII-3 (ETX, end-of-text) on all systems, right?
Am 18.06.2021 08:03:02 schrieb commits at source.squeak.org <commits at source.squeak.org>:
Marcel Taeumel uploaded a new version of Collections to project The Trunk:
==================== Summary ====================
Time: 18 June 2021, 8:02:50.788904 am
Extends constant character names to support #return.
Fixes constant character names to work with all current constants, which, e.g., includes #arrowUp etc.
Drop #newPage in favor of #pageDown (and #pageUp). Note that #newPage still works as a constant. It will just not show up when you print a non-printable character.
=============== Diff against Collections-eem.944 ===============
Item was changed:
----- Method: Character class>>constantNames (in category 'private') -----
+ ^ #( backspace delete return lf enter delete escape null space tab arrowDown arrowUp arrowLeft arrowRight end home pageDown pageUp euro insert )!
- ^ #( backspace cr delete escape lf null newPage space tab ).!
Item was added:
+ ----- Method: Character class>>return (in category 'accessing untypeable characters') -----
+ "Answer the Character representing a carriage return."
+ ^self value: 13!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev