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)
close #1
stdin$ = left$(stdin$, len(stdin$) - 1) ' remove newline
outpt$ = "echo " + chr$(34) + chr$(27) + "[35m" + stdin$ + " "
outpt$ = outpt$ + chr$(27) + "[37m" + chr$(34)
shell outpt$
system 'otherwise you have to ctrl-c to end fake/virtual sdl window

Posted on Dec 4, 2012, 1:54 AM

Respond to this message   

Return to Index

Response TitleAuthor and Date
it only works from the framebuffer/virtual console... no wait, you can use screen toomn64 on Dec 4
looking into _dest _CONSOLEmn64 on Dec 7
 Re: looking into _dest _CONSOLEMichael Calkins on Dec 8
  consoles vs. stdin/stdoutmn64 on Dec 8
   Re: consoles vs. stdin/stdoutMichael 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 postmn64 on Dec 8
       $CONSOLE vs _CONSOLE ON/OFFMichael 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 qb64mn64 on Dec 14

 Copyright © 1999-2018 Network54. All rights reserved.   Terms of Use   Privacy Statement  

Quantcast