![]() ![]() Which assumably would require someone to submit a brand new TIP. The original plan in this withdrawn TIP now has little relevance (except for people who want this feature on older Windows versions – but it seems dubious to make a lot of complex effort to support a new feature on old Windows versions when newer versions support it in a far simpler way.) It would still make sense to enhance win/tclWinConsole.c – at a minimum, enhance ConsoleSetOptionProc and ConsoleGetOptionProc to support three these console mode options. There are two other useful flags, ENABLE_VIRTUAL_TERMINAL_INPUT which makes it send escape sequences for key presses as well, and DISABLE_NEWLINE_AUTO_RETURN which changes the newline handling to be more compatible with Unix. Except, you have to call SetConsoleMode to enable the ENABLE_VIRTUAL_TERMINAL_PROCESSING flag before it will work. So now you can get colours/etc on Windows in the same way as you do on Unix-like systems - just output the escape sequence. Consoleanwendungen müssen die Console aber zunächst konditionieren um diese Escapesequenzen auch nutzen zu können. The situation here has completely changed now that Windows 10 (in its newer updates) actually supports ANSI/ECMA-48/VT100 escape sequences. And TWAPI is a little overweight for creating a small text mode script with a few menus or so, and not cross platform. (Most of the above lines begin with a question mark in a square, then open square bracket, then 90m, obviously an escape sequence being rendered literally rather than interpreted. MHo I don't know why MS dropped Support for ANSI sequences. (The Windows console is totally different to a Unix terminal.) In short, if it's going to be done then it's going to be done as a platform-specific extension, and do we really need to package it with Tcl itself at this stage?ĪPN: TWAPI provides commands to manipulate the console (cursor movement, colors etc.) albeit not in the form of ANSI sequences. ![]() Does someone know if this ever will be done?ĭKF: It was withdrawn at the author's request when he worked out just how much work it was to bring it up to the point of being useful. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |