September 12, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote: > Now it's possible to build DlangUI apps to run in console (Linux, Windows). > When DlangUI is built with version=USE_CONSOLE (dub subconfiguration "console" for dlangui library) - it works in terminal. I just tried to compiel with subconfiguration "console" but I'm getting compile errors: dub build --force Performing "debug" build using dmd for x86. dlangui 0.9.1: building configuration "console"... %APPDATA%\dub\packages\dlangui-0.9.1\dlangui\3rd party\fontconfig\package.d(7,12): Error: module loader is in file 'derelict\util\loader.d' which cannot be read import path[0] = %APPDATA%\dub\packages\dlangui-0.9.1\dlangui\3rdparty import path[1] = %APPDATA%\dub\packages\dlangui-0.9.1\dlangui\src import path[2] = C:\D\dmd2\windows\bin\..\..\src\phobos import path[3] = C:\D\dmd2\windows\bin\..\..\src\druntime\import dmd failed with exit code 1. |
September 12, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin Attachments:
| On Fri, Sep 9, 2016 at 2:20 PM, Vadim Lopatin via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Friday, 9 September 2016 at 11:56:11 UTC, Adam D. Ruppe wrote: > >> On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote: >> >>> Now it's possible to build DlangUI apps to run in console (Linux, >>> Windows). >>> >> >> Very nice. >> >> Part of key modifiers do not work in linux console. >>> Mouse events working ok. >>> >> >> Which parts are you having trouble with? I have implemented a lot of this for my terminal.d and might be able to help. >> > > Keyboard support on Linux terminals seems most difficult. > Hi Vadim, [0] is a short raw keyboard example, uses Jason's io, libasync and termios: https://gist.github.com/rjmcguire/58f3fd3d5f0934dc351cd143c1b0c880 It has quite a lot of comments, it is an experiment for keyboard io, so I guess it might fit into dlangui nicely. R |
September 12, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Biedermann | On Monday, 12 September 2016 at 08:15:57 UTC, Steve Biedermann wrote:
> On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote:
>> Now it's possible to build DlangUI apps to run in console (Linux, Windows).
>> When DlangUI is built with version=USE_CONSOLE (dub subconfiguration "console" for dlangui library) - it works in terminal.
>
> I just tried to compiel with subconfiguration "console" but I'm getting compile errors:
>
> dub build --force
> Performing "debug" build using dmd for x86.
> dlangui 0.9.1: building configuration "console"...
> %APPDATA%\dub\packages\dlangui-0.9.1\dlangui\3rd
> party\fontconfig\package.d(7,12): Error: module loader is in file 'derelict\util\loader.d' which cannot be read
> import path[0] = %APPDATA%\dub\packages\dlangui-0.9.1\dlangui\3rdparty
> import path[1] = %APPDATA%\dub\packages\dlangui-0.9.1\dlangui\src
> import path[2] = C:\D\dmd2\windows\bin\..\..\src\phobos
> import path[3] = C:\D\dmd2\windows\bin\..\..\src\druntime\import
> dmd failed with exit code 1.
Must be fixed in v0.9.2 (once dub registry updated version)
|
September 13, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote: > Hello! > > Now it's possible to build DlangUI apps to run in console (Linux, Windows). > When DlangUI is built with version=USE_CONSOLE (dub subconfiguration "console" for dlangui library) - it works in terminal. > > Such feature may be useful, e.g. to run apps on headless devices, or via SSH. > > For simple apps, it's enough just to specify dlangui configuration console. No additional changes required. > > If custom themes are used, additional theme files prefixed with "console_" are to be created. > If custom embedded resources are used, create additional resource list file, with "console_" prefix. > > Margins, padding, size values if specified in pixels are to be changed. > Hint: use points or EMs for such values to get them working universally on both console and GUI. > > If images/icons are used, and still needed in console mode, you may need to create ASCII art like text image files (.tim extension). Screenshot of DlangIDE working in console: http://i68.tinypic.com/2hrmkup.png |
September 13, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Tuesday, 13 September 2016 at 07:51:06 UTC, Vadim Lopatin wrote:
> On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote:
>> [...]
>
> Screenshot of DlangIDE working in console:
>
> http://i68.tinypic.com/2hrmkup.png
Looks great!
can you fix dlang-ui to build on XP ?
|
September 13, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stefan Koch | On Tuesday, 13 September 2016 at 11:27:19 UTC, Stefan Koch wrote: > On Tuesday, 13 September 2016 at 07:51:06 UTC, Vadim Lopatin wrote: >> On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote: >>> [...] >> >> Screenshot of DlangIDE working in console: >> >> http://i68.tinypic.com/2hrmkup.png > > Looks great! > can you fix dlang-ui to build on XP ? I don't have XP to check. What is wrong? Could you submit issue on github? https://github.com/buggins/dlangui/issues |
September 13, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Friday, 9 September 2016 at 11:21:07 UTC, Vadim Lopatin wrote:
> Some screenshots (from dlangui example1 app):
>
> http://i63.tinypic.com/2wn1bg9.png
> http://i66.tinypic.com/142yctx.png
> http://i64.tinypic.com/snlc08.png
> http://i64.tinypic.com/2n16vcw.png
>
Good job, but why do people still use tinypic in 2016, when things like imgur exist that are a 1000 times faster to use, no dirty ads and images won't magically be taken down someday.
|
September 13, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bauss | On Tuesday, 13 September 2016 at 12:18:19 UTC, Bauss wrote:
> Good job, but why do people still use tinypic in 2016, when things like imgur exist that are a 1000 times faster to use, no dirty ads and images won't magically be taken down someday.
Thanks. I just googled tinypic with "free image hosting".
Next time will upload on imgur.
|
September 13, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bauss | On Tuesday, 13 September 2016 at 12:18:19 UTC, Bauss wrote: > Good job, but why do people still use tinypic in 2016, when things like imgur exist that are a 1000 times faster to use, no dirty ads and images won't magically be taken down someday. Screenshots on imgur: http://imgur.com/a/eaRiT |
September 13, 2016 Re: DlangUI 0.9.0: Console backend added | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin Attachments:
| On Tue, Sep 13, 2016 at 2:29 PM, Vadim Lopatin via Digitalmars-d-announce < digitalmars-d-announce@puremagic.com> wrote: > On Tuesday, 13 September 2016 at 12:18:19 UTC, Bauss wrote: > >> Good job, but why do people still use tinypic in 2016, when things like imgur exist that are a 1000 times faster to use, no dirty ads and images won't magically be taken down someday. >> > > Screenshots on imgur: http://imgur.com/a/eaRiT > nice, much better image site.. Did you get my post about the keyboard thing? You can test it by running dub --single filename.d output looks like: kp: [27, 91, 49, 59, 50, 68] kp: [27, 91, 49, 59, 53, 68] kp: [27, 91, 49, 59, 51, 68] kp: [27, 91, 68] if I press: shift+Left ctrl+Left alt+left left BTW: love what you are doing with dlangui. Are you a one person team? |
Copyright © 1999-2021 by the D Language Foundation