tclib
tclib copied to clipboard
Set of single-file public domain libraries.
Using the _insert_ key should change between insert and overwrite modes.
Double underscores anywhere in an identifier are reserved in C++ (their use was temporary anyways). They should be replaced with some other syntax.
In non-Windows, the libraries currently silently assume the input is UTF-8. The information is (_mostly_) available, and it should be used to convert the locale-specific `char` encoding to UTF-8. See...
The `tcterm_get_cursor_pos()` function currently flushes all input in order to get the data in POSIX — that should be fixed. The best way to do that is to take advantage...
Currently, `tcterm_getc()` is the only way of getting input and it is _slow_. For that purpose, buffering and/or some sort of a `tcterm_read()` should be added.
The libraries which can be tested effectively (which is most of them at the moment), should get some tests made — perhaps with continuous integration.
The headers are currently almost completely undocumented. That should be remedied.
Currently, only a single callback exists. Instead, multiple events should be recognized and passed to the user. I have already decided to go with option nr. 3, but for the...
Right now, all history is discarded on exit. It should be read or written from/to a file or a custom stream. This might require another dependency, `tc_stream` (since I expect...
The libraries are limited to getting (and storing in history) only a single line of input. This should be added. Some sort of an API is needed to provide support...