Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8062059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:32:29+00:00 2026-06-05T10:32:29+00:00

In TurboPascal program i took an advantage of DOS processed output and use Tab

  • 0

In TurboPascal program i took an advantage of DOS processed output and use Tab control character to form columns in the output:

const Tab = #09;
...
Writeln(X, Tab, F(X));

However, when i tried to add a pause-like functionality via ReadKey call and used Crt module, processed output broke, and the statement illustrated above began writing generic Tab glyph instead forming columns at the tab stops.

As i figured out, source of this phenomenon is AssignCrt(Output) call at the module initialization, which redefines means how Writeln works – it no longer uses DOS for output, but either video BIOS or direct video memory access (depending on DirectVideo value) instead.

How do i reverse whatever AssignCrt does? As far as i know from the documentation, there Crt module provides no means to restore normal output.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:32:30+00:00Added an answer on June 5, 2026 at 10:32 am

    The Crt textfile driver does not support the tab character in turbo-pascal.
    To revert back the standard dos driver, do as follows:

    Assign(Output,”); // Restores standard dos output

    You can later reinstate the Crt driver by:

    AssignCrt(Output);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am doing some maintenance to a 18 year old pascal program. To help
program TypeCategory; {$R+} var sInt : shortint; iInt : integer; begin readln(iInt); sInt :=
I am running Turbo Pascal 3.01A on CP/M 2.2. Suppose my Pascal program, which
I started with Turbo Pascal 3, went to TP5, Bought TP6 called Borland the
We have some ancient Delphi code (might have even originated as Turbo Pascal code)
First of all, I must state that I'm a complete newb when it comes
Does anyone of you know if the BNF or EBNF of Turbo Pascal is
I've been using Eclipse since 2.x and IDEs in general for over 20 years
I am I think ok at algorithmic programming, if that is the right term?
I have coded a 3d-terrain engine with simplistic model engine on top of it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.