←back to thread

Ubuntu on Windows

(blog.dustinkirkland.com)
2049 points bpierre | 5 comments | | HN request time: 0.263s | source
Show context
80x25 ◴[] No.11391663[source]
"But there are some imperfections still, especially around tty's an the vt100. My beloved byobu, screen, and tmux don't quite work yet, but they're getting close!"

If they actually fix these imperfections, that would be fantastic. It would address a number issues that are "unfixable" in Cygwin flavors of utilities/apps.

replies(2): >>11391979 #>>11417227 #
1. rspeer ◴[] No.11391979[source]
It sounds like this would involve tweaking conhost.exe so that it understands all the vt100 sequences, as well as UTF-8. (I hope they wouldn't assume everyone's tmux setup uses only characters from codepage 437.)

If they did that, it would also fix the awfulness of Python's stdout on Windows!

replies(3): >>11394129 #>>11394195 #>>11417377 #
2. marshray ◴[] No.11394129[source]
I was watching the stream and I think they said Windows console host will, in fact, directly support VT-100.
3. anonymfus ◴[] No.11394195[source]
>as well as UTF-8.

UTF-8 was always available as codepage 65001.

replies(1): >>11395633 #
4. batat ◴[] No.11395633[source]
It's terribly broken https://social.msdn.microsoft.com/Forums/vstudio/en-US/e4b91...

Seems to work only with WriteConsoleOutputW(), while C I/O behaves unpredictably.

5. JdeBP ◴[] No.11417377[source]
> I hope they wouldn't assume everyone's tmux setup uses only characters from codepage 437.

I hope that people here aren't assuming that terminals are all VT100 clones. (-:

The old (Interix) Windows NT POSIX subsystem added escape sequence recognition to Windows consoles when POSIX programs were using them as their terminal output. Such terminals match up with an "Interix" terminal type in the termcap and terminfo databases. Their escape sequence set is not the same as any DEC VT type.

The Dickey ncurses termcap database has an "interix|opennt|ntconsole" entry, although I have encountered systems with ncurses but without this termcap entry and had to add it myself. It is, apparently, wrong. David Given has a different one in LBW.

* https://technet.microsoft.com/en-gb/library/bb463194.aspx

* http://invisible-island.net/ncurses/colored-terminfo.src.htm...

* https://developer.mozilla.org/en-GB/docs/Mozilla/Developer_g...

* https://github.com/sedwards/lbw/blob/master/extras/interix.t...