Comments (2)
This is one of the ways the Windows console and Unix terminals differ. After writing the last character in a line, the Windows console immediately advances by a line. A Unix terminal, on the other hand, moves the cursor to the position just after the last cell in the line. Line advancement doesn't happen until the first character of the next line is output, or if a CR is output, no advancement happens at all. (This behavior allows writing to the bottom-right cell.)
This can be verified using echo. It can be helpful to write out a "DSR", where the terminal reports the cursor position as keyboard input. e.g. echo -e "xxxxxx\e[6nyyyyyy\e[6n"
The current #21 fix will work for sequential output where the CRLF is redundant. I would expect it to break if a full line were instead modified. (Successive modifications should appear to walk up the terminal.) I think the fix could be modified to let the terminal wrap in some cases, but I'm concerned about how rewrapping terminals (e.g. the OS X terminal) would handle it.
What terminal are you using to display the output of winpty? (Perhaps you're using the Windows console?)
from winpty.
I am viewing the output in the Eclipse Terminal view (which should actually behave like a Unix terminal), but I do see now that it does not handle the line wrap case in the same way as e.g. an xterm. Anyway, thanks for the hints! I'll close this bug and redirect the issue to the Eclipse Terminal view then.
from winpty.
Related Issues (20)
- Specifying named docker volume causes includes invalid characters problem HOT 5
- Error creating winpty: lost connection to agent?
- Is there a way to avoid winpty to set the terminal's title?
- Global configuration (g_DebugConfig) is leaked.
- xagrs return info lose slash
- "winpty bash" doesn't work from "Enter-PSSession -Computer myServer"?
- Missing text colors in MINGW64 when program runs with winpty HOT 2
- [NOTE!!!] Added support for VCPKG/CMake/dynaic+static linkage/arm64
- PREFIX environmental variable does not change installation directory
- Can not scroll buffer when using windows builtin telnet client in cygwin/msys2/vscode terminal etc
- Add support for Windows ARM HOT 2
- 'Pty is closed.' BUG in my app
- Line output is clipped to 80 columns
- Error when building under cygwin: cygwin_conv_to_win32_path was not declared in this scope HOT 3
- does libwinpty has a way to detect cmd.exe needs a input? HOT 2
- how to render CSI n G?
- winpty clears screen in Git Bash HOT 3
- How to install winpty on Windows HOT 4
- Unknown Issue when Installing CodeCompanion
- xp version binaries will not run on xp systems. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winpty.