我正在使用curses 绑定到Red/System 编写一个简单的教程应用程序。像“curses-example.reds”中显示的那样做,效果很好。但是我怎样才能从纯 Red 代码中使用这个绑定呢?我是不是把整个方法弄错了,我真的必须留在红色/系统方言的范围内?
代码尽可能简单:
Red/System [
File: "%test.reds"
]
#include %curses/curses.reds
with curses [
initscr
getch
endwin
]
如何正确地在 Red/System 和 Red 之间进行双向日期交换?我没有从这个问题的答案中得到很好的答案。