mirror of
https://github.com/QB64Official/qb64.git
synced 2024-05-12 12:00:14 +00:00
Update libqb.cpp
This commit is contained in:
parent
12458c63bd
commit
04546ae979
|
@ -19077,7 +19077,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
|
|||
if (new_error) return 0;
|
||||
|
||||
#ifdef QB64_WINDOWS
|
||||
if ((read_page->console && !passed)||i==console_image){
|
||||
if ((write_page->console && !passed)||i==console_image){
|
||||
SECURITY_ATTRIBUTES SecAttribs = {sizeof(SECURITY_ATTRIBUTES), 0, 1};
|
||||
HANDLE cl_conout = CreateFileA("CONOUT$", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, & SecAttribs, OPEN_EXISTING, 0, 0);
|
||||
CONSOLE_SCREEN_BUFFER_INFO cl_bufinfo;
|
||||
|
@ -19086,7 +19086,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
|
|||
}
|
||||
#endif
|
||||
#ifdef QB64_UNIX
|
||||
if ((read_page->console && !passed)||i==console_image){
|
||||
if ((write_page->console && !passed)||i==console_image){
|
||||
struct winsize w;
|
||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
|
||||
return w.ws_col;
|
||||
|
@ -19113,7 +19113,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
|
|||
if (new_error) return 0;
|
||||
|
||||
#ifdef QB64_WINDOWS
|
||||
if ((read_page->console && !passed)||i==console_image){
|
||||
if ((write_page->console && !passed)||i==console_image){
|
||||
SECURITY_ATTRIBUTES SecAttribs = {sizeof(SECURITY_ATTRIBUTES), 0, 1};
|
||||
HANDLE cl_conout = CreateFileA("CONOUT$", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, & SecAttribs, OPEN_EXISTING, 0, 0);
|
||||
CONSOLE_SCREEN_BUFFER_INFO cl_bufinfo;
|
||||
|
@ -19123,7 +19123,7 @@ void sub_put2(int32 i,int64 offset,void *element,int32 passed){
|
|||
}
|
||||
#endif
|
||||
#ifdef QB64_UNIX
|
||||
if ((read_page->console && !passed)||i==console_image){
|
||||
if ((write_page->console && !passed)||i==console_image){
|
||||
struct winsize w;
|
||||
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
|
||||
return w.ws_row;
|
||||
|
|
Loading…
Reference in a new issue