tôi đang điều tra curses.rb
của curses
đá quý, Tôi thấy điều này ở khắp mọi nơi:"Đây là sơ khai, được sử dụng để lập chỉ mục" trong hầu hết các phương pháp?
def attrset(attrs)
#This is a stub, used for indexing
end
# bkgdset(ch)
#
# Manipulate the background of the current window
# with character Integer +ch+
#
# see also Curses.bkgdset
def bkgdset(ch)
#This is a stub, used for indexing
end
# bkgd(ch)
#
# Set the background of the current window
# and apply character Integer +ch+ to every character.
#
# see also Curses.bkgd
def bkgd(ch)
#This is a stub, used for indexing
end
# Returns an Interer (+ch+) for the character property in the current window.
def getbkgd()
#This is a stub, used for indexing
end
Tôi không hiểu được một phần còn sơ khai. Mã nguồn thực sự hoạt động ở đâu?
Woah, phát ngay. Điều đó giải thích mọi thứ. – ntl0ve