add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) (#16977)

* add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C)

* changelog
This commit is contained in:
Timothee Cour 2021-02-09 05:25:38 -08:00 • committed by GitHub
commit 630f867bd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 77 additions and 15 deletions

View file

@ -138,6 +138,8 @@ with other backends. see #9125. Use `-d:nimLegacyJsRound` for previous behavior.
- Added `random.initRand()` overload with no argument which uses the current time as a seed.
- Added experimental `linenoise.readLineStatus` to get line and status (e.g. ctrl-D or ctrl-C).
## Language changes
- `nimscript` now handles `except Exception as e`.