nyble

A snake game for the terminal.


nyble

/

doc

/

help.txt

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
nyble
  A snake game for the terminal.

Usage
  nyble
  nyble [--colour=<on|off|auto>] -h|--help
  nyble [--colour=<on|off|auto>] -v|--version
  nyble [--colour=<on|off|auto>] --license

Options
  --colour=<on|off|auto>
    Print the program output with colour either on, off, or auto based on if
    stdout is a tty, the default value is 'auto'.
  -h, --help
    Print the help output.
  --license
    Print the program license.
  -v, --version
    Print the program version.

Key Bindings
  <ctrl-c>
    quit the program
  <ctrl-z>
    suspend the program
  <ctrl-l>
    force screen redraw
  ;, :
    enter the command prompt
  <space>
    start/pause the game
  r
    restart the game
  R
    restart the game and fit game window to the screen
  1
    coil the body of the snake to a size of 3, and then extend itself back to
    its previous size
  2
    reverse the snakes direction, swapping the head with the tail
  3
    toggle fixed movement of the snake, a direction key must be pressed or held
    to move the snake
  ,
    move left, 2 key mode
  .
    move right, 2 key mode
  <
    u-turn left, 2 key mode
  >
    u-turn right, 2 key mode
  <up>, w, k
    move up
  <down>, s, j
    move down
  <left>, a, h
    move left
  <right>, d, l
    move right

Command Prompt Bindings
  <esc>
    exit the prompt
  <enter>
    submit the input
  <tab>
    enter autocomplete mode
  <ctrl-u>
    clear the prompt
  <up>, <ctrl-p>
    previous history value based on current input
  <down>, <ctrl-n>
    next history value based on current input
  <left>, <ctrl-b>
    move cursor left
  <right>, <ctrl-f>
    move cursor right
  <home>, <ctrl-a>
    move cursor to the start of the input
  <end>, <ctrl-e>
    move cursor to the end of the input
  <delete>, <ctrl-d>
    delete character under the cursor or delete previous character if cursor is
    at the end of the input
  <backspace>, <ctrl-h>
    delete previous character

Autocomplete Prompt Bindings
  <esc>
    exit autocomplete mode
  <enter>
    select value under cursor
  <up>, <ctrl-p>
    move cursor to start of previous section
  <down>, <ctrl-n>
    move cursor to start of next section
  <left>, <ctrl-b>
    move cursor left
  <right>, <ctrl-f>
    move cursor right
  <home>, <ctrl-a>
    move cursor to the start of first section
  <end>, <ctrl-e>
    move cursor to the start of last section

Examples
  nyble
    run the program
  nyble --help --colour=off
    print the help output, without colour
  nyble --help
    print the help output
  nyble --version
    print the program version
  nyble --license
    print the program license

Exit Codes
  0
    normal
  1
    error

Meta
  The version format is 'major.minor.patch (day.month.year)'.

Repository
  https://github.com/octobanana/nyble.git

Homepage
  https://octobanana.com/software/nyble

Author
  Brett Robinson (octobanana) <octobanana.dev@gmail.com>
Back to Top