开发者

Something like getch(), textcolor() and gotoxy() in Ruby

开发者 https://www.devze.com 2022-12-18 03:56 出处:网络
I want to use these functions from the conio.c library (Borland) in Ruby, specially getch()开发者_C百科.

I want to use these functions from the conio.c library (Borland) in Ruby, specially getch()开发者_C百科.

getch() gets a key from the keyboard without press enter.

textcolor() changes the color of the text in the terminal.

gotoxy() moves the cursor to other position of the terminal.

Someone knows the equivalents?

Thanks.


On ruby-forum I found a discussion about this, see Ncurses like library. There are both Ncurses and Curses. Not sure if there are other libs.

0

精彩评论

暂无评论...
验证码 换一张
取 消