问题
I am writing an application that connect to a Linux box from Windows console over a custom socket, and I need to tell the Linux box what my console is capable of through TERM
environment variable. For now I set TERM=dumb
, but it is too limited. In particular I need Linux side to know that:
- I am reading input with standard reads from stdin, so no ESC, F1 and arrows are passed (but TAB is)
- Windows console has autowrap
- It is unable to process ANSI color sequences
- It is able to process carriage returns to draw progress bars
Is there an good profile in terminfo
database for such Windows console?
If there is an extended profile on top of that that can be used when my app will finally recognize ANSI colors?
UPDATE: Somebody voted to close this as too broad
, so I edited the question to be very specific about capabilities of Windows console that should be reflected in terminfo
entry.
来源:https://stackoverflow.com/questions/44596128/terminfo-for-windows-console-that-is-using-readstdin-for-input