[Snek] [keith-packard/snek] 8328b6: snekde: Add page-up/page-down keystrokes

Keith Packard noreply at github.com
Sun May 26 08:57:25 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: 8328b6c0020e4aa9dd53343c98ff69e22ee5cefc
      https://github.com/keith-packard/snek/commit/8328b6c0020e4aa9dd53343c98ff69e22ee5cefc
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-22 (Wed, 22 May 2019)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: Add page-up/page-down keystrokes

Use F7 to switch between frames

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: fcf51dff2f5a488a59524e7ad4ccbb598cc4399b
      https://github.com/keith-packard/snek/commit/fcf51dff2f5a488a59524e7ad4ccbb598cc4399b
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-22 (Wed, 22 May 2019)

  Changed paths:
    M snekde/snekde.py

  Log Message:
  -----------
  snekde: un-break esc prefix for function keys

To use 'esc' to get out of dialogs, I removed the esc handling
from my_getch. This adds that code back to run() where it gets
used for all non-modal entry.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 2109b553185e3c4b40ef5dd442990a9dfddeafea
      https://github.com/keith-packard/snek/commit/2109b553185e3c4b40ef5dd442990a9dfddeafea
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-22 (Wed, 22 May 2019)

  Changed paths:
    M doc/snek.adoc

  Log Message:
  -----------
  doc: Fix up snekde keyboard usage documentation

Add page-up/page-down
Fix pane-switch
Explain esc usage.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 5797ba834dd1a019f140b3a559f23e130496aba1
      https://github.com/keith-packard/snek/commit/5797ba834dd1a019f140b3a559f23e130496aba1
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-22 (Wed, 22 May 2019)

  Changed paths:
    M examples/neopixels.py

  Log Message:
  -----------
  examples: Use playground buttons to control brightness in neopixels

This demonstrates using the buttons to adjust the overall brightness
of the NeoPixels.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 1a779edcfd707a5b776710d28c8244e3e895d22c
      https://github.com/keith-packard/snek/commit/1a779edcfd707a5b776710d28c8244e3e895d22c
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-25 (Sat, 25 May 2019)

  Changed paths:
    M snek-frame.c
    M snek.h

  Log Message:
  -----------
  snek_frame_mark_global value is never used, switch to void

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: f5a02e5270d5e68497d305dd5fd5e538736e60c0
      https://github.com/keith-packard/snek/commit/f5a02e5270d5e68497d305dd5fd5e538736e60c0
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-25 (Sat, 25 May 2019)

  Changed paths:
    M snek-frame.c

  Log Message:
  -----------
  Check frame in snek_variable_lookup

Instead of callers. This also catches more cases where this is used,
which might happen if memory allocation fails.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 51d262a0b26a4abde2f7bd595d209e263b06360e
      https://github.com/keith-packard/snek/commit/51d262a0b26a4abde2f7bd595d209e263b06360e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-26 (Sun, 26 May 2019)

  Changed paths:
    M snek-frame.c

  Log Message:
  -----------
  Create snek_globals in snek_pick_frame instead of snek_frame_lookup

This seems cleaner as it creates the global frame precisely where it
is referenced.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 5db814f4a5f921c6824ebec15f51d3d82b5fd8d1
      https://github.com/keith-packard/snek/commit/5db814f4a5f921c6824ebec15f51d3d82b5fd8d1
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-26 (Sun, 26 May 2019)

  Changed paths:
    M snek-parse.c

  Log Message:
  -----------
  Stop parsing on error in non-interactive mode

This causes non-embedded snek versions to exit at the first error,
instead of continuing.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 014c342011fb6af8bfbb026887978724cea79dd4
      https://github.com/keith-packard/snek/commit/014c342011fb6af8bfbb026887978724cea79dd4
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-26 (Sun, 26 May 2019)

  Changed paths:
    M snek-code.c

  Log Message:
  -----------
  Require in-scope definition of op= targets

When performing an operator assignment (e.g. +=), a variable on the
LHS must have been declared in-scope either by creating a local
variable or defining the name as global.

Fortunately, the 'snek_op_is_local' function does just the check we
need -- this looks for the name in the local frame, which is true
either if the name references a local variable, or if the name is
marked global.

We just need to check for the op= case, and whether there is a local
frame in effect.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: c2c43214406f379d939e63c463e9f6593d7da99e
      https://github.com/keith-packard/snek/commit/c2c43214406f379d939e63c463e9f6593d7da99e
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-26 (Sun, 26 May 2019)

  Changed paths:
    M test/Makefile
    A test/scoping-global.py
    A test/scoping-local.py
    A test/scoping-no-decl.py

  Log Message:
  -----------
  test: Add op= scoping rules tests

These test the special op= scoping rules where a variable on the LHS
must be declared in-scope.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: eb3c050f18c88d914fcbd3333aa7c50d1b21472f
      https://github.com/keith-packard/snek/commit/eb3c050f18c88d914fcbd3333aa7c50d1b21472f
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-26 (Sun, 26 May 2019)

  Changed paths:
    M itsybitsy-snek/ao-snek-itsybitsy.c

  Log Message:
  -----------
  itsybitsy-snek: Initialize port variables after 'reset'

Should still probably set all of the ports to input too, but
we don't have space in the ROM yet.

Signed-off-by: Keith Packard <keithp at keithp.com>


  Commit: 3c3c8bafa6e6eebd4c6ddb285370858494e069cd
      https://github.com/keith-packard/snek/commit/3c3c8bafa6e6eebd4c6ddb285370858494e069cd
  Author: Keith Packard <keithp at keithp.com>
  Date:   2019-05-26 (Sun, 26 May 2019)

  Changed paths:
    M samd21/ao-snek.c

  Log Message:
  -----------
  samd21: Don't set 'interactive' before snek_parse

interactive should be controled by the eeprom code alone.

Signed-off-by: Keith Packard <keithp at keithp.com>


Compare: https://github.com/keith-packard/snek/compare/824c0329a9d0...3c3c8bafa6e6


More information about the Snek mailing list