View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0021377||FPC||RTL||public||2012-02-26 09:12||2020-07-26 11:35|
|Reporter||tommi boy||Assigned To|
|Summary||0021377: CursorOff from Crt module don't hide cursor.|
|Description||CursorOff from Crt module don't hide cursor.|
|Steps To Reproduce||1) create file with code|
2) compile this code and run it in terminal
3) you can see that cursor is visible
|Tags||No tags attached.|
|Fixed in Revision|
||Issue reproduced with gnome-terminal.|
Crt was originally designed for the console and xterm.
Could you test with xterm?
I made some test on a Slackware 10.1 installation, with FPC 2.6.2 (just it).
On xterm and xrvt, the cursor remains visible; otherwise in the console (Ctrl-Alt-F6) it disappears correctly.
I do a quick look through the code (packages/rtl-console/src/unix/crt.pp) and I noticed that CursorOff procedure relies on ttySendStr, which makes use of the variables InCnt, InHead, InTail and OutCnt that are not initialized, while they should all start at 0.
I do not be sure whether it is related to the problem, considering the automatic initialization performed by the compiler, I would test by myself but I have problem to recompile on Linux.
Hope that helps, Marco Borsari