View Issue Details

IDProjectCategoryView StatusLast Update
0021377FPCRTLpublic2020-07-26 11:35
Reportertommi boy Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
Platformi386OSxubuntu linux 
Product Version2.4.4 
Summary0021377: CursorOff from Crt module don't hide cursor.
DescriptionCursorOff from Crt module don't hide cursor.
Steps To Reproduce1) create file with code
program test;
uses crt;
begin
  cursoroff;
  readln;
end.
2) compile this code and run it in terminal
3) you can see that cursor is visible
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

tommi boy

2012-02-28 20:14

reporter   ~0057153

Issue reproduced with gnome-terminal.

Marco van de Voort

2012-02-29 09:28

manager   ~0057158

Crt was originally designed for the console and xterm.

Could you test with xterm?

Marco_B

2020-07-26 11:35

reporter   ~0124340

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

Issue History

Date Modified Username Field Change
2012-02-26 09:12 tommi boy New Issue
2012-02-28 20:14 tommi boy Note Added: 0057153
2012-02-29 09:28 Marco van de Voort Note Added: 0057158
2012-03-06 13:02 Marco van de Voort Status new => feedback
2020-07-26 11:35 Marco_B Note Added: 0124340