Skip to content

Print a netline on exit - #41

Closed
mike632t wants to merge 3 commits into
davidly:mainfrom
mike632t:stable
Closed

mike632t wants to merge 3 commits into
davidly:mainfrom
mike632t:stable

Conversation

@mike632t

@mike632t mike632t commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

On CP/M 2.2 when a program terminates a new line is printed before the prompt is shown.

When running programs with ntvcm printing a newline just before ntvcm terminates mimics this behaviour.

@davidly

davidly commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Hi Mike -- thanks for creating this PR!

CP/M 2.2 emits a CR/LF during a warm or cold boot while loading the command processor, not at app termination.

I'm open to taking a change to support this, but it would have to be (1) controlled by a new command-line flag that enables the behavior. The default behavior should remain what it is now since a bunch of test automation across other repos would treat this as a breaking change otherwise. And (2) the printf( "\n" ); should happen prior to the fflush() rather than after.

@mike632t

mike632t commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

Both of thise are very good points though I'm not sure about adding another flag - perhaps print a newline if the program calls BDOS Function 0 ?

I'll close this PR for now and if I get time I'll see if I can figure something out...

@mike632t

mike632t commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

Closed

@mike632t mike632t closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants