mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-02 03:50:36 +00:00
Allow PRINT to show content in console even without a new line
Closes #74
This commit is contained in:
parent
6801e08f2f
commit
ab1f20eb3b
|
@ -10653,6 +10653,9 @@ void qbs_print(qbs* str,int32 finish_on_new_line){
|
||||||
static qbs* strz; if (!strz) strz=qbs_new(0,0);
|
static qbs* strz; if (!strz) strz=qbs_new(0,0);
|
||||||
qbs_set(strz,qbs_add(str,qbs_new_txt_len("\0",1)));
|
qbs_set(strz,qbs_add(str,qbs_new_txt_len("\0",1)));
|
||||||
if (finish_on_new_line) cout<<(char*)strz->chr<<endl; else cout<<(char*)strz->chr;
|
if (finish_on_new_line) cout<<(char*)strz->chr<<endl; else cout<<(char*)strz->chr;
|
||||||
|
#ifndef QB64_WINDOWS
|
||||||
|
std::cout.flush();
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue