Summary
enable terminal-port? on windows
Metadata
- Id: c1813c9341550b72fda2e9ae153b29e8af3a10ad
- Trac id: 182
- Type: enhancement
- Reporter: zbigniew
- Owner:
- Cc: felix
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: minor
- Milestone:
- Version: 4.3.x
- Changetime: 2010-03-11 10:33:12 UTC
- Created: 2010-03-05 04:21:33 UTC
- Keywords:
Attachments
- c1813c9341550b72fda2e9ae153b29e8af3a10ad/attachments/0001-posixwin-implement-terminal-port.patch
Description
chicken-doc requires terminal-port? to work on Windows. Attached patch against master enables it. This is tested on plain MinGW (no MSYS) on Windows XP. I noticed that official examples use _isatty and _fileno instead of isatty and fileno as in the patch, but it still works fine. I can't test it on other Windows versions though.
Changes and comments
[2010-03-05 04:21:48 UTC] zbigniew attached 0001-posixwin-implement-terminal-port.patch (description=#f)
[2010-03-05 04:23:29 UTC] zbigniew wrote:
Um, I meant that chicken-doc requires terminal-port? on Windows for the *pager* to work properly. Otherwise it does not treat stdout as a tty.
[2010-03-05 12:26:32 UTC] felix changed status from new to closed
[2010-03-05 12:26:32 UTC] felix set resolution to fixed
[2010-03-05 12:26:32 UTC] felix wrote:
Patch is applied, see commit bf8216a1acf666d54ff1c6755bcd307706df8721 (and the one before that). Note that `terminal-size` will still return `0 0`on Windows.