diff options
| -rw-r--r-- | CHANGELOG.md | 6 | ||||
| -rw-r--r-- | system/init.lua | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d4107d6..9bd02ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
| @@ -27,9 +27,13 @@ The scope of what is covered by the version number excludes: | |||
| 27 | 27 | ||
| 28 | ## Version history | 28 | ## Version history |
| 29 | 29 | ||
| 30 | ### version x.x.x, unreleased | ||
| 31 | |||
| 32 | - Fix: maximum key-delay, reduced from 0.2 to 0.1 seconds to reduce slugginess feel on some key presses. | ||
| 33 | |||
| 30 | ### version 0.6.2, released 15-Apr-2025 | 34 | ### version 0.6.2, released 15-Apr-2025 |
| 31 | 35 | ||
| 32 | - Fix: autotermrestore didn't work because its metatable was overwritten. | 36 | - Fix: autotermrestore didn't work because its metatable was overwritten. |
| 33 | 37 | ||
| 34 | ### version 0.6.1, released 13-Apr-2025 | 38 | ### version 0.6.1, released 13-Apr-2025 |
| 35 | 39 | ||
diff --git a/system/init.lua b/system/init.lua index 9c86c4a..f05b237 100644 --- a/system/init.lua +++ b/system/init.lua | |||
| @@ -239,7 +239,7 @@ end | |||
| 239 | do | 239 | do |
| 240 | --- Reads a single byte from the console, with a timeout. | 240 | --- Reads a single byte from the console, with a timeout. |
| 241 | -- This function uses `fsleep` to wait until either a byte is available or the timeout is reached. | 241 | -- This function uses `fsleep` to wait until either a byte is available or the timeout is reached. |
| 242 | -- The sleep period is exponentially backing off, starting at 0.0125 seconds, with a maximum of 0.2 seconds. | 242 | -- The sleep period is exponentially backing off, starting at 0.0125 seconds, with a maximum of 0.1 seconds. |
| 243 | -- It returns immediately if a byte is available or if `timeout` is less than or equal to `0`. | 243 | -- It returns immediately if a byte is available or if `timeout` is less than or equal to `0`. |
| 244 | -- | 244 | -- |
| 245 | -- Using `system.readansi` is preferred over this function. Since this function can leave stray/invalid | 245 | -- Using `system.readansi` is preferred over this function. Since this function can leave stray/invalid |
| @@ -263,7 +263,7 @@ do | |||
| 263 | return nil, err | 263 | return nil, err |
| 264 | end | 264 | end |
| 265 | timeout = timeout - interval | 265 | timeout = timeout - interval |
| 266 | interval = math.min(0.2, interval * 2) | 266 | interval = math.min(0.1, interval * 2) |
| 267 | key = system._readkey() | 267 | key = system._readkey() |
| 268 | end | 268 | end |
| 269 | 269 | ||
