madru Active Member Licensed User Longtime User Oct 7, 2020 #1 Hi, can we control (sending escape sequences) the output of a console app? e.g. in python in can do something like this to get the cursor 5 lines up: B4X: print "\33[{:d}A".format(5 + 1) or how to do a proper console app with some kind of "GUI"? every suggestion is welcome
Hi, can we control (sending escape sequences) the output of a console app? e.g. in python in can do something like this to get the cursor 5 lines up: B4X: print "\33[{:d}A".format(5 + 1) or how to do a proper console app with some kind of "GUI"? every suggestion is welcome
Erel B4X founder Staff member Licensed User Longtime User Oct 7, 2020 #2 You can write to the console whatever characters you like. You can use BytesToString with ASCII encoding and convert an array of bytes if needed. However this is not enough in order to create a console UI. Alternatives: 1. UI app. 2. Server app. Upvote 0
You can write to the console whatever characters you like. You can use BytesToString with ASCII encoding and convert an array of bytes if needed. However this is not enough in order to create a console UI. Alternatives: 1. UI app. 2. Server app.
madru Active Member Licensed User Longtime User Oct 7, 2020 #3 ok, will try BytesToString with ASCII, both alternatives will not work (no GUI, no Network) Upvote 0
R roerGarcia Active Member Licensed User Longtime User Oct 7, 2020 #4 It looks like what you want is something like this: I assume you know the escape sequences (esc [rows-to-move-upA, B, C, etc) Maybe your application should only run and give certain information formatted via console? Google traductor Upvote 0
It looks like what you want is something like this: I assume you know the escape sequences (esc [rows-to-move-upA, B, C, etc) Maybe your application should only run and give certain information formatted via console? Google traductor
madru Active Member Licensed User Longtime User Oct 7, 2020 #5 yep, correct I am after something like that.... it is mainly for output of machinery data and will (must) have 4 x toggles Upvote 0
yep, correct I am after something like that.... it is mainly for output of machinery data and will (must) have 4 x toggles