Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ascii-control.mjs 325B

123456789101112
  1. export default asciiControl
  2. import codes from './codes.mjs'
  3. // Note: EOF is seen as ASCII control here, because `null < 32 == true`.
  4. function asciiControl(code) {
  5. return (
  6. // Special whitespace codes (which have negative values), C0 and Control
  7. // character DEL
  8. code < codes.space || code === codes.del
  9. )
  10. }