View Single Post
Old 23 December 2021, 00:20   #2
mateusz_s
Registered User

 
Join Date: Jan 2020
Location: Poland
Posts: 118
Quote:
Originally Posted by mateusz_s View Post
When I am using in my C code, under AmigaOS 3.2
printf("ABC");

the default console opens and writes that. But I would like to setup
that console windows size first.

I tried:
BPTR consoleFH = Open("CON:20/20/500/100/Console", MODE_OLDFILE);
SelectOutput(consoleFH);


It only opens additional window, but output is still in the first default window.

Thank You in advance

Hmmm.. I figure out something like that. It works.
Is that a correct way?
Code:
BPTR consoleFH = Open("CON:50/50/400/250/Console/", MODE_NEWFILE);

const char* abc = "ABCSS";
Write(consoleFH, abc, strlen(abc));

// at the end
// Close(consoleFH);

Last edited by mateusz_s; 23 December 2021 at 01:16.
mateusz_s is offline  
 
Page generated in 0.04408 seconds with 11 queries