Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
Strange behavior of tab character
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
WIKI Maintenance
Our wiki is currently undergoing maintenance. Courtesy of Tony a mirror is available
« previous
next »
Print
Pages: [
1
]
Author
Topic: Strange behavior of tab character (Read 813 times)
simsee
Full Member
Posts: 240
Strange behavior of tab character
«
on:
November 30, 2025, 05:27:09 pm »
Why does writeln sometimes display the tab character (ascii #9) in a string with a little circle, instead of performing a character gap?
Logged
marcov
Administrator
Hero Member
Posts: 13052
FPC developer.
Re: Strange behavior of tab character
«
Reply #1 on:
November 30, 2025, 05:30:28 pm »
Probably you output it with stdout in RAW mode.
Logged
simsee
Full Member
Posts: 240
Re: Strange behavior of tab character
«
Reply #2 on:
November 30, 2025, 05:33:09 pm »
This happens in one of my apps, but not in others. What setting affects this behavior?
Logged
jamie
Hero Member
Posts: 8071
Re: Strange behavior of tab character
«
Reply #3 on:
November 30, 2025, 05:49:07 pm »
canvas.Textout Does not support a TAB, you must emulate it,
WriteStr, Write and WriteLn should work, however.
If those are not working then yes, something is amidst !
Logged
The only true wisdom is knowing you know nothing
marcov
Administrator
Hero Member
Posts: 13052
FPC developer.
Re: Strange behavior of tab character
«
Reply #4 on:
November 30, 2025, 05:55:22 pm »
Quote from: simsee on November 30, 2025, 05:33:09 pm
This happens in one of my apps, but not in others. What setting affects this behavior?
You don't give much information, but units like CRT or VIDEO (used anywhere in the program!) might have such effect.
Logged
simsee
Full Member
Posts: 240
Re: Strange behavior of tab character
«
Reply #5 on:
November 30, 2025, 06:58:55 pm »
For some reason, I had unnecessarily included
Crt
in the uses clause of the unit where
writeln
was exhibiting this strange behavior with tab. I'm under Windows. Removing the inclusion solved the problem. Thanks Marcov!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
Strange behavior of tab character
TinyPortal
© 2005-2018