Nick Gammon

Results 74 comments of Nick Gammon

Try it and see.

All that BigNumber::begin does is call bc_init_numbers which initializes a few default numbers (zero, one and two) by calling bc_new_num. All bc_new_num does is allocate some memory and assign a...

Line 131 [is a comment](https://github.com/nickgammon/Keypad_Matrix/blob/cbb3a9b1d4a4a3af1ed45207209aad86c3e73daf/Keypad_Matrix.cpp#L131)

The INPUT_PULLUP lines are done in the **begin** function which you should be calling anyway before using it. See [the README file](https://github.com/nickgammon/Keypad_Matrix#readme).

The returned captures are always strings, because it just remembers the starting and ending position inside your supplied target. Turning them into something else would require memory allocation, and confusion...

The regexp library is basically the Lua pattern matching library with an interface for use outside Lua. I don't want to start fiddling with it. If you want to know...

See line 196: ``` SREG = oldSREG; // turn interrupts back on ``` The technique of saving the status register and restoring it is a standard method of turning interrupts...

@hatjan Thanks! I must have missed that one. @othmar52 You can always "escape" the circumflex with %. Un-escaped it is treated as "start of expression". Escaping in Lua patterns is...

What version of the mapper do you have? The line shown in the error message should not fail: https://github.com/nickgammon/mushclient/blob/master/lua/mapper.lua#L303 ```lua if type (v) == 'table' and v.colour then ``` Also,...

Also, for the learning window, after these lines: ```lua WindowCreate (learn_window, windowinfo.window_left, windowinfo.window_top, LEARN_WINDOW_WIDTH, LEARN_WINDOW_HEIGHT, windowinfo.window_mode, -- top right windowinfo.window_flags, ColourNameToRGB "lightcyan") ``` Add: ```lua WindowSetZOrder(learn_window, 1000) ``` That should...