|
Post by Pjot on Aug 19, 2018 19:35:46 GMT 1
All, Last days I have been working on an ASCII based editor. The intention is to embed it into the BaCon binary, for example in such a way that the editor mode can be invoked with a new '-e' switch (the 'e' for editor). The editor includes syntax highlighting and it can process the BACKSPACE, DEL, PGUP, PGDOWN, HOME, END and RETURN keys. The ESC key will provide a small menu on the bottom of the screen. It is inspired by the TermUx Android app, which allows a native compilation of BaCon on your Android device without any complicated fiddling. If BaCon also includes its own editor then it is independent from any external software to create programs. Please make sure to fetch the latest BaCon from the fossil repo because of a fixed bug in CHANGE$. BR Peter EDIT: improved code further. Attachments:
editor2.bac.gz (3.85 KB)
|
|
|
Post by vovchik on Aug 19, 2018 21:02:06 GMT 1
Dear Peter,
Thanks. It looks very useful - and compiles and runs fine using the latest beta.
With kind regards, vovchik
|
|
|
Post by Pjot on Aug 21, 2018 18:17:23 GMT 1
Thanks for testing vovchik! Attached the latest standalone version. This code now is embedded into the beta version of BaCon also. Usage: Hope you like it, and as usual, any ideas or improvements are welcome Best regards Peter Attachments:editor2.bac.gz (4.27 KB)
|
|
|
Post by bigbass on Aug 23, 2018 18:15:04 GMT 1
Hello Peter
Very nice ! a much needed addition having the terminal color and a simple menu to compile also
very practical while testing snippets
and all built in later I need to test this in android too
Joe
|
|
|
Post by Pjot on Aug 23, 2018 19:08:06 GMT 1
Thanks Bigbass, Here is a screenshot of the embedded ASCII editor running on my Samsung Tab S3 tablet in Android 8 using the TermUx shell. Best regards Peter Attachments:
|
|
pebau
Junior Member
Posts: 81
|
Post by pebau on Sept 2, 2018 10:05:58 GMT 1
How could I customize the colors used in the editor ?
BR, Peter Bauer
|
|
|
Post by Pjot on Sept 2, 2018 13:43:29 GMT 1
There's no support for setting a theme yet, but I am looking into it.
Best regards Peter
|
|
pebau
Junior Member
Posts: 81
|
Post by pebau on Sept 7, 2018 21:30:25 GMT 1
I added the (t) key to toggle switch between normal and intense colors. BR, Peter Bauer editor2.tar.gz (4.47 KB)
|
|
|
Post by bigbass on Sept 8, 2018 6:02:33 GMT 1
Hello pebau I like your choice of colors very much I have a hard time with darker colors on a dark background I would only suggest a minor thing for my eyes the red on the dark background I almost cant see it if it would be possible a lighter red Thanks for your work on this ! PS update the screen shot was the problem I can see the red fine running the program all is perfect Joe
|
|
|
Post by Pjot on Sept 8, 2018 17:40:23 GMT 1
Thanks Peter,
That is a very nice addition. I will add it to the embedded editor in BaCon as well.
As a side note, the colors are already very bright when using the standard Xterm instead of Kterm or Gnome-terminal. Apparently, the appearance of terminal colors depends on the type of shell...
Best regards Peter
|
|