terminfo for windows console that is using read(stdin) for input

馋奶兔 提交于 2019-12-12 03:53:55

问题


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:

  1. I am reading input with standard reads from stdin, so no ESC, F1 and arrows are passed (but TAB is)
  2. Windows console has autowrap
  3. It is unable to process ANSI color sequences
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!