-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Conversation
thanks landed in 0ec3770 |
|
||
## readline.moveCursor(stream, dx, dy) | ||
|
||
Move cursor relative to it's current position in a given TTY stream. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/it's/its/
sorry for stupid question, but why this functional resides in |
@litmit, the |
@chjj may be you right but I think that separate level of abstraction is needed in any case: |
As an FYI, when I originally extracted these functions from the However, there's lots of user-land modules that provide a more feature-full experience when it comes to ANSI escape codes, so you're really better off using one of those. ansi.js is mine: https://npmjs.org/package/ansi |
.. and I sure with it.
I looked at few of them. Common problem that they are not worked well on Windows. I think that there is needed some support from Node's core. |
The only feature I know that doesn't work properly is 256 color support (using my ansi module). Which feature doesn't work well that you're trying to use? FYI, libuv already does ansi code translation to Windows API calls when written to stdout. |
Steps to reproduce: press F2, output: press Shift-F2, output (wrong name and shift status): press Ctrl-F2, output (noname, ctrl false): press Alt-F2, output: press Ctrl-Alt-F2, not supported at all. press Alt-Shift-F2, output (wrong name and shift status): press Ctrl-Shift-F2, output (noname, wrong ctrl status): press Ctrl-Alt-Shift-F2, output (noname, wrong ctrl,shift status)::
|
Dumb Question but what is meant by the position x and y? Lets say I had a file would the y position be my line? and would the x position be the character index within the line? |
fix #6933