且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在ncurses中使用mvgetch()读取新行

更新时间:2023-12-03 20:08:52

我不认为回车键会返回"\ n",但会返回"\ r"或回车.您可能也没有意识到,但是笛卡尔坐标的默认值是等于Y轴的行和等于X的列,如此处所述 [^ ].
I don''t think the enter key returns ''\n'', but ''\r'' or carriage return. You may also not be aware but the default for Cartesian co-ordinates is rows equate to the Y-axis and columns to X, as described here[^].