Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

StdinMBS.Echo as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared property Files MBS Util Plugin 17.4 Yes Yes Yes Yes No
Function: Enables/disables echo for stdin.
Example:
// try this on Mac/Linux GUI/Console app with the app launched from Terminal,
// or in console app on Windows launched from command prompt

dim s as new StdoutMBS

s.Write "Hello World"+chr(10)

dim t as string
dim n as integer = StdinMBS.ReadString(t)
s.Write chr(10)
s.Write "Read with echo: "+t+chr(10)

StdinMBS.Echo = false

n = StdinMBS.ReadString(t)
s.Write chr(10)
s.Write "Read without echo: "+t+chr(10)

StdinMBS.Echo = true
Notes:
You can disable echo for password input.
By default it is enabled.
(Read and Write property)

Feedback, Comments & Corrections

StdinMBS.IsReady as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared property Files MBS Util Plugin 12.3 Yes No Yes Yes No
Function: Checks whether there is data waiting in input buffer to be read.
Notes:
If IsReady returns false and you would call ReadString method, the app could be blocked until user types something on console.
(Read only property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Util Plugin.




Links
MBS Xojo Plugins