commandline
commandline copied to clipboard
A C++ commandline for use in servers and chat software. Provides very simple asynchronous input/output.
When building x64-osx (vcpkg): ``` /Users/vagrant/Data/buildtrees/commandline/src/a4454e07a9-613e01ad85.clean/commandline.cpp:11:10: fatal error: 'conio.h' file not found #include ^~~~~~~~~ 1 error generated. ``` _Originally posted by @JackBoosY in https://github.com/microsoft/vcpkg/issues/23471#issuecomment-1063590831_
on_autocomplete currently passes in the current cursor position, in order to allow autocomplete within a word/sentence at a specific point. This is nice, but not as useful as it could...
Currently we're using ANSI escape codes on both Unix/Linux/MacOS and Windows, which causes issues in Windows (of course). They decided that Powershell and the Windows Terminal (!= CMD) should not...
HOME and END keys don't work in some shells. This needs further testing to confirm.
Related to https://github.com/BeamMP/BeamMP-Server/issues/206 Does not build on MacOS.
Currently, calling `get_command` without checking `has_command` invokes implementation defined behavior (i.e. in both currently present backends an exception). - [ ] Find all cases in the code where such assumptions...
1. Run commandline_test as `screen -dmS test commandline_test` 2. Observe 100% CPU spin 3. Attach via `screen -r test` and observe completely bugged input - [ ] `screen -dmS` should...
- [ ] Add *meaningful* doxygen-style documentation to all public `Backend` functions
This PR implements UTF-8 handling and, by the way, resolves #8 issue. Also solves issue with redundant `\n` or `\r` characters at the end of commands. _Linux implementation not checked._