- Added localized descriptions for flag completions in
cmd
,cd
, andrd
. - Added partial ability to detect light/dark console color themes:
- Added
console.getcolortable()
which returns a table with the console's current 16 predefined colors. When possible, the table includes a field indicating whether the current console color theme is a light or dark theme. - At this time, the colors can be accurately retrieved only when using the legacy conhost terminal. When using Windows Terminal, ConEmu, or other ConPty-based terminals there is currently no way to accurately retrieve the colors. Once the Terminal#10639 issue is fixed then Clink will also detect the background color in these terminal programs.
- Changed the default for
color.suggestion
so that it attempts to detect light themes (bright background colors) when possible, and it attempts automatically choose a default color for suggestions that is faint but has sufficient contrast to be readable.
- Added
- Fixed the
onlink
callback function in:addflags()
so that thearg_index
parameter is correctly0
instead of1
. - Fixed the upper bound line number for Lua console line API functions.
- Fixed
console.getlinetext()
when emoji are present.