Thanks very much

2012/4/24 Ryan Schmidt <[email protected]>:
>
> On Apr 24, 2012, at 09:33, Ryan Schmidt wrote:
>
>> On Apr 24, 2012, at 09:28, jason.桂林 wrote:
>>
>>> I want to write a CLI program, but I got a little problem
>>>
>>> var x = 0; setInterval(function(){ process.stdout.write('\r' + (++x)) }, 10)
>>>
>>> I wrote this simple program ,  how to hide cursor in CLI?
>>
>> That's a shell programming question, not a node question.
>>
>> http://www.unix.com/shell-programming-scripting/176837-bash-hide-terminal-cursor.html
>
> I guess there are node modules to help you do this. Here's an example of 
> someone using cursor.hide() and cursor.show(), where cursor is obtained from 
> require('ansi').
>
> https://gist.github.com/2299368
>
> There's also node-ncurses which has showCursor.
>
> https://github.com/mscdex/node-ncurses
>
> etc.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en



-- 
Best regards,

Jason Green
桂林

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to