문제

I want to use these functions from the conio.c library (Borland) in Ruby, specially getch().

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top