Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #68237 > unrolled thread
| Started by | Szyk Cech <szykcech@spoko.pl> |
|---|---|
| First post | 2019-09-05 22:05 +0200 |
| Last post | 2019-09-06 05:15 -0700 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.lang.c++
NCurses and HTML - is this possible?!? Szyk Cech <szykcech@spoko.pl> - 2019-09-05 22:05 +0200
Re: NCurses and HTML - is this possible?!? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-09-05 21:29 +0100
Re: NCurses and HTML - is this possible?!? dickey@invisible-island.net - 2019-09-05 15:27 -0700
Re: NCurses and HTML - is this possible?!? Sam <sam@email-scan.com> - 2019-09-06 06:44 -0400
Re: NCurses and HTML - is this possible?!? Thiago Adams <thiago.adams@gmail.com> - 2019-09-06 05:15 -0700
| From | Szyk Cech <szykcech@spoko.pl> |
|---|---|
| Date | 2019-09-05 22:05 +0200 |
| Subject | NCurses and HTML - is this possible?!? |
| Message-ID | <kUdcF.221536$VE7.4746@fx11.am4> |
Hello! I search few minutes Internet without success. My question is: Is this any reasonable solution which allow to render HTML in NCurses apps?!? I want to write app with commandline and Qt or NCurses interface. It will be nice if I can display some basic tags in Qt and NCurses without conversions... Thanks in advance. Best regards. Szyk Cech
[toc] | [next] | [standalone]
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Date | 2019-09-05 21:29 +0100 |
| Message-ID | <8736hazduk.fsf@bsb.me.uk> |
| In reply to | #68237 |
Szyk Cech <szykcech@spoko.pl> writes: > I search few minutes Internet without success. > > My question is: > Is this any reasonable solution which allow to render HTML in NCurses > apps?!? There are console-only browsers like w3m, links and lynx so the end result is possible. I don't know if any of these actually use NCurses, but if any do, there may be a separable rendering library out there. -- Ben.
[toc] | [prev] | [next] | [standalone]
| From | dickey@invisible-island.net |
|---|---|
| Date | 2019-09-05 15:27 -0700 |
| Message-ID | <3a131073-507a-495f-9cfc-a0b8ab7fc8c5@googlegroups.com> |
| In reply to | #68240 |
On Thursday, September 5, 2019 at 4:29:35 PM UTC-4, Ben Bacarisse wrote: > Szyk Cech writes: > > > I search few minutes Internet without success. > > > > My question is: > > Is this any reasonable solution which allow to render HTML in NCurses > > apps?!? > > There are console-only browsers like w3m, links and lynx so the end > result is possible. I don't know if any of these actually use NCurses, > but if any do, there may be a separable rendering library out there. w3m uses termcap (a low-level interface); links (and those derived from it such as links2, elinks) are hard-coded, lynx uses curses (ncurses for instance). For a "separable rendering library" useful with a text-browser: good luck finding that. Rendering html is actually irrelevant to both C++ and ncurses...
[toc] | [prev] | [next] | [standalone]
| From | Sam <sam@email-scan.com> |
|---|---|
| Date | 2019-09-06 06:44 -0400 |
| Message-ID | <cone.1567766665.951900.3806.1004@monster.email-scan.com> |
| In reply to | #68237 |
[Multipart message — attachments visible in raw view] — view raw
Szyk Cech writes: > Hello! > > I search few minutes Internet without success. > > My question is: > Is this any reasonable solution which allow to render HTML in NCurses apps?!? Sure: simply write a little bit of C++ code to parse HTML, and show the parsed text using ncurses. It's not complicated. HTML parsing is not that hard. > I want to write app with commandline and Qt or NCurses interface. > It will be nice if I can display some basic tags in Qt and NCurses without > conversions... I don't know what "conversions" means. Parsing and formatting basic HTML is not rocket science. Cone, a terminal mail reader, is capable of displaying HTML-formatted E-mail, and it didn't take an eternity to write a basic HTML parser for it; even translating some basic HTML tags into terminal color and highlight attributes. No CSS or tables, but basic HTML content is quite readable.
[toc] | [prev] | [next] | [standalone]
| From | Thiago Adams <thiago.adams@gmail.com> |
|---|---|
| Date | 2019-09-06 05:15 -0700 |
| Message-ID | <0d6310f9-13c1-4d68-b170-bf7fbd89c771@googlegroups.com> |
| In reply to | #68256 |
On Friday, September 6, 2019 at 7:44:39 AM UTC-3, Sam wrote: > Szyk Cech writes: > > > Hello! > > > > I search few minutes Internet without success. > > > > My question is: > > Is this any reasonable solution which allow to render HTML in NCurses apps?!? > > Sure: simply write a little bit of C++ code to parse HTML, and show the > parsed text using ncurses. It's not complicated. HTML parsing is not that > hard. > > > I want to write app with commandline and Qt or NCurses interface. > > It will be nice if I can display some basic tags in Qt and NCurses without > > conversions... > > I don't know what "conversions" means. Parsing and formatting basic HTML is > not rocket science. Cone, a terminal mail reader, is capable of displaying > HTML-formatted E-mail, and it didn't take an eternity to write a basic HTML > parser for it; even translating some basic HTML tags into terminal color and > highlight attributes. No CSS or tables, but basic HTML content is quite > readable. If someone wants to create a project for that, let me know, I am in. In my view HTML is the current standard of everything related with UI. Everything else is a wast of time. And of course we don't need all features but a subset. I would like to use this to create interfaces for servers. For instance a small utility to edit server config files.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c++
csiph-web