for gnu/linux (and probably other platforms too) qb64 can be used WITHOUT GRAPHICS MODE!by mn64 (no login)
'license: creative commons zero 1.0 (public domain)
'1. save this to basicsh.bas
'2. compile the usual way, to basicsh
'3. sudo apt-get install xvfb # or yum for redhat
'4. $ xvfb-run ./basicsh
shell "ls /tmp"
shell "echo hello"
shell "echo qb64 is basic | espeak"
shell "read q ; echo " + chr$(34) + "$q" + chr$(34) + "> /tmp/stdin2qb64"
open "/tmp/stdin2qb64" for binary as #1 : stdin$ = input$(lof(1), #1)
stdin$ = left$(stdin$, len(stdin$) - 1) ' remove newline
outpt$ = "echo " + chr$(34) + chr$(27) + "[35m" + stdin$ + " "
outpt$ = outpt$ + chr$(27) + "[37m" + chr$(34)
system 'otherwise you have to ctrl-c to end fake/virtual sdl window
Return to Index
|Response Title||Author and Date|
|it only works from the framebuffer/virtual console... no wait, you can use screen too||mn64 on Dec 4|
|looking into _dest _CONSOLE||mn64 on Dec 7|
|Re: looking into _dest _CONSOLE||Michael Calkins on Dec 8|
|consoles vs. stdin/stdout||mn64 on Dec 8|
|Re: consoles vs. stdin/stdout||Michael Calkins on Dec 8|
|not a lot of things to correct you on...||mn64 on Dec 8|
|we might not be that far apart on this. (2 edits)||Michael Calkins on Dec 8|
|short answers to a long post||mn64 on Dec 8|
|$CONSOLE vs _CONSOLE ON/OFF||Michael Calkins on Dec 9|
|even when i get them working, i'm not sure they'll do exactly...||mn64 on Dec 9|
|(update) possibilities and limitations of console programming in qb64||mn64 on Dec 14|