[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why do console applications need to return plain text? Why can't

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 51
Thread images: 7

File: 1340433133397.jpg (103KB, 384x313px) Image search: [Google]
1340433133397.jpg
103KB, 384x313px
Why do console applications need to return plain text?

Why can't it render HTML?

It's a self imposed glass ceiling
>>
>>57576619
>Why do console applications need to return plain text?
Why shouldn't it?

>Why can't it render HTML?
Why should it?

>It's a self imposed glass ceiling
What is that even supposed to mean?
>>
>>57576716
/thread
>>
File: maxresdefault.jpg (65KB, 607x1080px) Image search: [Google]
maxresdefault.jpg
65KB, 607x1080px
>>57576716
Because it literally only returns text

You can't render Google Earth with plain text

You can't show an anime girl with oversized tits with plain text

Plain text is only good for tell you you're a potato munching retard but even that's better with a raster image
>>
>>57576619
Because they are supposed to be simple and robust. If you desperately need a GUI with output rendered in HTML, make a frontend for the console program in question.
>>
>>57576799
>You can't show an anime girl with oversized tits with plain text
>what is ASCII art

You can't be underage and post here.
>>
>>57576872
Yeah because that's ideal

Why does 4chan even support images, just communicate through ascii art
>>
File: index.jpg (7KB, 275x183px) Image search: [Google]
index.jpg
7KB, 275x183px
>>57576619
>Why can't it render HTML?
>>
>>57576799
^_^
(o)(o)
||
<|>
||
|\
>>
File: fucking balls.jpg (96KB, 600x600px) Image search: [Google]
fucking balls.jpg
96KB, 600x600px
>>57576619
>what is lynx
>>
File: 1473175069072.jpg (78KB, 600x394px) Image search: [Google]
1473175069072.jpg
78KB, 600x394px
>>57576619

Would you believe TempleOS can do that sort of thing ?

I am not even shitting you.

The most notable feature of TempleOS is its ubiquitous hypertext system, DolDoc. This is the foundation for the both the shell and the text editor. Unlike Unix which represents everything via plain-text, everything in Temple is stored in DolDoc format. The format itself is somewhat akin to RTF, and you can hit Ctrl-T at any point to inspect the raw text directly.

But DolDoc isn't just for text. You can store images (and even 3D meshes) directly into documents. You can put macros in there: hyperlink commands that run when you click on them. So if you want to build a menu or launcher, you just make a new text document and put links in it.

All of this allows something similar to the Oberon system developed at ETH Zurich, where the distinction of text, programs, menus and forms all blurs together into one.

http://www.codersnotes.com/notes/a-constructive-look-at-templeos/
>>
About as complex as they can get based on the environment is color and maybe bold.
>>
>>57577046
Doesn't Plan 9 do this as well?
>>
I don't mind the text. I just wish the commands were more verbose so they were easier to get.
>>
>>57577065
>About as complex as they can get based on the environment is color and maybe bold.
Don't fool yourself, all terminal emulators these days are rendered on the fb.
>>
>>57577046
Holy shit lads

I think this guy's over our heads
>>
>>57577083
I meant it terms of legacy and established practises. Yes, you can show images (and play video) on the framebuffer, but it's easier for people to just imagine it as a pure command line. Otherwise you'll just cause more questions.

The first being things like "what's a framebuffer."
>>
>>57577185
>"what's a framebuffer."

/dev/fb0
>>
$ file /dev/fb0
/dev/fb0: character special


So the framebuffer is a character device anyways.
>>
>>57577046
All TempleOS needs now is networking support
>>
File: w3m.jpg (134KB, 1311x829px) Image search: [Google]
w3m.jpg
134KB, 1311x829px
>>
>>57577205
"What's /dev/fb0?"

See?

It's a command line. Let's just leave it at that.
>>
File: careystoned.gif (476KB, 320x240px) Image search: [Google]
careystoned.gif
476KB, 320x240px
>>57577092

>tfw i have no face when terry davis was sane the whole time and we were the ones that were insane
>>
>>57577233
nice try, CIA
>>
>>57577275
How can I post on 4chan via gods chosen operating system without networking?
>>
>>57577092
Everyone in TempleOS threads knows he's a genius at a technical level.

He's just also fucked up at a personal one.
>>
>tfw no terminal 4chan reader
>>
>>57577299
Yup, terry is a very smart person. Pretty fucked up in the head, but very smart. There is a very thin line between genius and insanity.
>>
>>57577479
>muh profound crazy genius

No, you fedora. He's just a good programmer that got schizophrenia.

Still it's pretty fascinating
>>
>>57578557
He's the greatest programmer on Earth chosen by God.
>>
>>57577046
That would be great except whenever I experience TempleOS I feel like I'm trapped in a living nightmare from which I may never awaken.
>>
>>57576619
>Why can't it render HTML?
Because then it'd be called a web browser.
>>
>>57577046
So basically Web 3.0 except with zero adoption.
>>
>implying HTML isn't plain text
>>
>Why do console applications need to return plain text?
Because that's what the purpose of a console application is -- basic text I/O.

>Why can't it render HTML?
Why doesn't your car cook toast? Because it's job is to move you from point A to point B, not to cook toast.

>>57576799

Why do you want to render Google Earth or display images in A FUCKING CONSOLE APPLICATION? These are what web or GUI desktop applications are for.
>>
>>57576619
>never heard of /dev/fb0
>>
>>57580076
The key word being "return"

Typing commands in plain text is advantageous, displaying things as plain text is not
>>
>>57580129
There are many advantages to plain text stuff.
>user customization formats/fonts
>can work on anything from a quad 1080ti machine to a kindle
>low resource usage
>low bandwidth usage (ssh or other)
>output can be easily parsed by other programs (unix pipes)
>>
>>57580129

Plenty of applications only require textual output. If I'm brute forcing the digits of PI, I'm probably going to want to only have some text representing digits. If I'm writing an update utility for my application, I probably only want to know some update status information, and maybe a progress bar that can be trivially implemented in ncurses. Maybe I'm writing a webserver. The only output that should be on the server end should be log messages, which will preferably be redirected into a file..

Also, I feel it is necessary to reiterate my point: If you need HTML rendering, why are you using console applications? Have you not heard of using the right tool for the right job? And if you find that a tool does not match your use cases, why must it be fitted to your use cases to the lamentations of others?
>>
>>57576619
>Why can't it render HTML?
So you can edit the rendered HTML rather than the source?
That's brilliant! Not!
>>
>>57576619
implement it
>>
>console

Fuck off back to /v/ manchild
>>
>>57576619
You can use mpv from a terminal (without a Xorg session) if you use DRM output.
>>
>>57577418
https://github.com/qqueue/ANSICHAN/blob/master/README.md
>>
>>57576619
Use Electron you fucking memester
>>
>>57576619
make an html-shell
>>57576799
you can try PowerShell, it uses .net Objects
>>
>>57580203
All of that works with HTML. It's markup.

You can still render plain text if you want to.

>>57581089
>Plenty of applications only require textual output. If I'm brute forcing the digits of PI, I'm probably going to want to only have some text representing digits. If I'm writing an update utility for my application, I probably only want to know some update status information, and maybe a progress bar that can be trivially implemented in ncurses. Maybe I'm writing a webserver. The only output that should be on the server end should be log messages, which will preferably be redirected into a file..
Plenty of websites only require texture output, it's still more ideal to have a stylesheet of some kind

You sound like the kind of person that can't imagine why a computer would ever need more than 64kb of ram and 10 lines of text. Try and think outside the box a little here

>Have you not heard of using the right tool for the right job?
It might seem weird but I'm not hearing a rebuttal for why it wouldn't make sense

>why must it be fitted to your use cases to the lamentations of others?
It doesn't need to, just have it be an option. And I didn't say all console applications have to be like this.
>>
>>57576619
Here's why:

If you need more than just text, you develop a GUI you retard. That's not what a terminal is for. It's really that simple.
>>
>>57576911
Anon, please. I just fapped.
>>
>make terminal program
>output data as strings
>make gui for program
>read string data and convert it back to int/bool/dates

Who the fuck thought this was a good idea?
>>
>>57576799
W3M+Ranger for viewing images
Why would you want to render Google earth in terminal, that's what GUI browsers are for. Why would it use HTML, that would pretty much just make it a web browser

And last of all, why would you even use it if you think that it's for potato munching retards?
Thread posts: 51
Thread images: 7


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.